Skip to content

Commit f1f82eb

Browse files
author
Marco Chiapello
committed
Update grid summary => new headers and round numbers
1 parent 620b7d1 commit f1f82eb

4 files changed

Lines changed: 62 additions & 59 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: Ramf
22
Type: Package
33
Title: Arbuscular Mycorrhizal colonization calculation
4-
Version: 0.4
5-
Authors@R: person("Marco", "Chiapello", email = "mc983.cam@gmail.com", role = c("aut", "cre"))
4+
Version: 0.5
5+
Author: Marco Chiapello
66
Maintainer: Marco Chiapello <mc983@cam.ac.uk>
77
Description: The package reads data from trouvelot quantification files or grid
88
system quantification files, compute the colonization rate according to the

R/functions.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ grid_summary <- function(x){
66
# Create summary table
77
y <- x %>%
88
group_by(samples, replicates) %>%
9-
summarise(Total = mean(Total, na.rm = TRUE),
10-
Hyphopodia = mean(Hyphopodia, na.rm = TRUE),
11-
IntrHyphae = mean(IntrHyphae, na.rm = TRUE),
12-
Arbuscule = mean(Arbuscule, na.rm = TRUE),
13-
Vesicles = mean(Vesicles, na.rm = TRUE)) %>%
9+
summarise(Total = round(mean(Total, na.rm = TRUE), 2),
10+
Hyphopodia = round(mean(Hyphopodia, na.rm = TRUE), 2),
11+
IntrHyphae = round(mean(IntrHyphae, na.rm = TRUE), 2),
12+
Arbuscule = round(mean(Arbuscule, na.rm = TRUE), 2),
13+
Vesicles = round(mean(Vesicles, na.rm = TRUE),2)) %>%
1414
ungroup
1515
y <- y %>% arrange(factor(samples, levels = unique(x$samples)), replicates)
1616
return(y)

R/methods-grid.R

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

inst/doc/Ramf.html

Lines changed: 45 additions & 42 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)