View source: R/my_summ_stat_func.R
my_summ_stat_func | R Documentation |
Compute the summary statistics of numeric variables from a given dataset. Compute the mean
, sd
, sem
, median
, n_Waves
, n_Cells
, n_Animals
and Normality_Shapiro_p.
NOTE: Shapiro-Wilk test will fail if less than 2 samples!.
my_summ_stat_func( my_dataset, my_grouping_vars = c("Animal", "Treatment", "Condition"), Na_rm = TRUE, round_to = 2, shapiro = "yes" )
my_dataset |
A previously cleaned dataframe with the function |
my_grouping_vars |
Character vector. A character vector of groups names assigned to perform the aggregation. Don't change at least you know what you are doing! |
Na_rm |
Boolean. Shall Nas be removed for summary functions computation?. Default to TRUE. |
round_to |
Integer. A value to indicate number of decimals to used in final output. Default to 2. |
shapiro |
Character. asses shapiro wilk test for normality. Requiere dataset length bigger than 2, otherwise will raise a warning. |
Return a dataframe with the mean, median, SD, SEM, number of elements analized (cells or wave), number of animals, and asses Normality of the distribution with the Shapiro-Wilk test.
# the example is missing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.