Description Usage Arguments Details Examples
View source: R/descriptive_APA.R
create a descriptive table and eventually export in csv. Perform a t test
1 | descriptive_APA(dataset, group, measures = '', filename = NULL, bonferroni.correction = FALSE)
|
dataset |
a data frame. |
group |
a factor with two levels giving the corresponding groups. |
measures |
a list of (non-empty) numeric vector of data values. |
filename |
either a character string naming a file or a connection open for writing. "" indicates output to the console. The 'csv' extension is added if missing. The file is stored in the working directory. |
bonferroni.correction |
Logical. If TRUE, p values are corrected (i.e., mutiplied by number of tests) |
It can be used to export in csv a descriptive table divided by group. The idea is to save several formats, so the unwanted columns are deleted in excel later. Files are saved in csv format in the working directory
1 2 | descriptive_APA(dataset = mtcars, group = mtcars$vs,
measures = c('mpg', 'disp', 'hp', 'drat', 'wt', 'qsec'), filename = 'aTry.csv')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.