View source: R/data_processing.R
summary_stat | R Documentation |
This function calculates sample size (n), median, mean, standard deviation (sd) and standard error (se) according to grouping variable/s (Factor1 and Factor2) and a dependent variable (LengthMM).
summary_stat(
root_norm,
col_grouping = c("Factor1", "Factor2"),
col_value = "LengthMM"
)
root_norm |
data.frame; normalized Rootdetection data set |
col_grouping |
string or vector; name of the column/s that should be used as grouping variable/s (Label or c(Factor1, Factor2)) |
col_value |
string; name of the column containing values (dependent variable) (LengthMM) |
data.frame; containing summary statistics for each Factor1 - Factor2 combination
# normalize Rootdetection Output
root_norm <- norm_10mm_standard(root_output)
# calculate summary statistic of standard Rootdetection data set
summary_stat(root_norm)
# calculate summary statistic grouped by Factor 1 only
summary_stat(root_norm, col_grouping = "Factor1", col_value = "LengthMM")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.