apa.save: Save previously constructed APA table objects in a single...

View source: R/rtfOutput.R

apa.saveR Documentation

Save previously constructed APA table objects in a single .doc file

Description

Save previously constructed APA table objects in a single .doc file

Usage

apa.save(filename, ..., paper = "us")

Arguments

filename

Filename (e.g., my.tables.doc)

...

apaTable objects to be saved

paper

Use "us" or "a4". Default is "us".

Value

Save status

Examples

library(apaTables)

table1 <- apa.1way.table(iv = dose, dv = libido,
               data = viagra, table.number = 1)

table2 <- apa.2way.table(iv1 = gender, iv2 = alcohol,
                         dv = attractiveness,
                         data = goggles, table.number = 1)

apa.save(filename = "my.tables.doc", table1, table2)

# delete demo file
if (file.exists("my.tables.doc")) {
     file.remove("my.tables.doc")
}

dstanley4/apaTables documentation built on Feb. 16, 2024, 2:16 p.m.