-1
警告:包含自學成才的R新手。將彙總(aov.sample)導出到CSV中R
Summary(aov.sample)
創建ANOVA的結果表,使得在
Error: particip
Df Sum Sq Mean Sq F value Pr(>F)
Residuals 11 16.49 1.499
Error: particip:device
Df Sum Sq Mean Sq F value Pr(>F)
device 1 14.22 14.222 3.76 0.0786 .
Residuals 11 41.61 3.783
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Error: particip:width
Df Sum Sq Mean Sq F value Pr(>F)
width 1 177.35 177.35 63.64 6.71e-06 ***
Residuals 11 30.65 2.79
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Error: particip:length
Df Sum Sq Mean Sq F value Pr(>F)
length 1 183.68 183.68 115.5 3.57e-07 ***
Residuals 11 17.49 1.59
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Error: particip:device:width
Df Sum Sq Mean Sq F value Pr(>F)
device:width 1 0.50 0.500 0.14 0.715
Residuals 11 39.17 3.561
Error: particip:device:length
Df Sum Sq Mean Sq F value Pr(>F)
device:length 1 1.389 1.389 0.661 0.433
Residuals 11 23.111 2.101
Error: particip:width:length
Df Sum Sq Mean Sq F value Pr(>F)
width:length 1 276.13 276.13 120.5 2.89e-07 ***
Residuals 11 25.21 2.29
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Error: particip:device:width:length
Df Sum Sq Mean Sq F value Pr(>F)
device:width:length 1 2.722 2.722 1.085 0.32
Residuals 11 27.611 2.510
Error: Within
Df Sum Sq Mean Sq F value Pr(>F)
group 2 7.1 3.566 1.327 0.268
group:device 2 0.6 0.316 0.118 0.889
group:width 2 0.1 0.045 0.017 0.983
group:length 2 6.0 3.024 1.125 0.327
group:device:width 2 1.6 0.823 0.306 0.737
group:device:length 2 1.7 0.858 0.319 0.727
group:width:length 2 3.1 1.531 0.570 0.567
group:device:width:length 2 8.0 4.003 1.490 0.228
Residuals 176 473.0 2.688
的typeof() = list
和class() = summary.aovlist
。我試圖使用delim.table
來幫助我以CSV格式友好且可讀的格式輸出此表格,但我得到的錯誤說cannot coerce class ""summary.aovlist"" to a data.frame
,儘管delim.table文檔說它會列出一個列表。我假設aovlist子類有一些特殊的問題,但是我不知道如何找出解決問題的方法或解決方法。我在這裏做錯了什麼,以及如何以可讀的方式將此表格輸出到CSV?