@@ -6,16 +6,16 @@ am_summary.grid <- function(x){
66 final <- tmp %> %
77 mutate(num = n()) %> %
88 group_by(samples ) %> %
9- summarise(mean_Total = mean(Total , na.rm = TRUE ),
10- se_Total = sd(Total , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )),
11- mean_Hyphopodia = mean(Hyphopodia , na.rm = TRUE ),
12- se_Hyphopodia = sd(Hyphopodia , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )),
13- mean_IntrHyphae = mean(IntrHyphae , na.rm = TRUE ),
14- se_IntrHyphae = sd(IntrHyphae , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )),
15- mean_Arbuscule = mean(Arbuscule , na.rm = TRUE ),
16- se_Arbuscule = sd(Arbuscule , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )),
17- mean_Vesicles = mean(Vesicles , na.rm = TRUE ),
18- se_Vesicles = sd(Vesicles , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE ))
9+ summarise(`Mean Total` = round( mean(Total , na.rm = TRUE ), 2 ),
10+ `Standard error Total` = round( sd(Total , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )), 2 ),
11+ `Mean Hyphopodia` = round( mean(Hyphopodia , na.rm = TRUE ), 2 ),
12+ `Standard error Hyphopodia` = round( sd(Hyphopodia , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )), 2 ),
13+ `Mean IntrHyphae` = round( mean(IntrHyphae , na.rm = TRUE ), 2 ),
14+ `Standard error IntrHyphae` = round( sd(IntrHyphae , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )), 2 ),
15+ `Mean Arbuscule` = round( mean(Arbuscule , na.rm = TRUE ), 2 ),
16+ `Standard error Arbuscule` = round( sd(Arbuscule , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )), 2 ),
17+ `Mean Vesicles` = round( mean(Vesicles , na.rm = TRUE ), 2 ),
18+ `Standard error Vesicles` = round( sd(Vesicles , na.rm = TRUE ) / sqrt(mean(num , na.rm = TRUE )), 2 )
1919 )
2020 final <- final [match(unique(x $ samples ), final $ samples ), ]
2121 l <- list (tmp , final )
0 commit comments