descriptive_APA: Descriptive table in APA format

Description Usage Arguments Details Examples

View source: R/descriptive_APA.R

Description

create a descriptive table and eventually export in csv. Perform a t test

Usage

1
descriptive_APA(dataset, group, measures = '', filename = NULL, bonferroni.correction = FALSE)

Arguments

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)

Details

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

Examples

1
2
descriptive_APA(dataset = mtcars, group = mtcars$vs,
                measures = c('mpg', 'disp', 'hp', 'drat', 'wt', 'qsec'), filename = 'aTry.csv')

alemiani/explora documentation built on May 28, 2019, 4:54 p.m.