write_esc: Write one or more 'esc' objects into an Excel csv-file

Description Usage Arguments Value Note See Also Examples

View source: R/combine_esc.R

Description

This method is a small wrapper to write csv-files. It writes the results from combine_esc into an Excel csv-file.

Usage

1
write_esc(..., path, sep = ",")

Arguments

...

One or more objects of class esc

path

Path to write to, or just file name (to write to working directory).

sep

The field separator string. In some Western European locales, Excel uses a semicolon by default, while in other locales the field separator string in Excel is a comma.

Value

Invisibly returns the combined data frame that is written to the csv-file (see combine_esc).

Note

For Western European locales, the sep-argument probably needs to be set to semicolon (sep = ";"), so Excel reads the csv-file properly. If sep = ";", write.csv2 is used to write the file. Else, write.csv is used.

See Also

combine_esc

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
e1 <- esc_2x2(grp1yes = 30, grp1no = 50, grp2yes = 40,
              grp2no = 45, study = "Study 1")
e2 <- esc_2x2(grp1yes = 30, grp1no = 50, grp2yes = 40, grp2no = 45,
              es.type = "or", study = "Study 2")
e3 <- esc_t(p = 0.03, grp1n = 100, grp2n = 150, study = "Study 3")
e4 <- esc_mean_sd(grp1m = 7, grp1sd = 2, grp1n = 50, grp2m = 9, grp2sd = 3,
                  grp2n = 60, es.type = "logit", study = "Study 4")

# write to current working directory,
# file extension ".csv" is automatically added
## Not run: 
write_esc(e1, e2, e3, e4, path = "EffSizes")
## End(Not run)

esc documentation built on Dec. 4, 2019, 5:07 p.m.