View source: R/apaDvalueTable.R
apa.d.table | R Documentation |
Creates a d-values for all paired comparisons in APA style
apa.d.table(
iv,
dv,
data,
filename = NA,
table.number = 0,
show.conf.interval = TRUE,
landscape = TRUE
)
iv |
Name of independent variable column in data frame for all paired comparisons |
dv |
Name of dependent variable column in data frame for all paired comparisons |
data |
Project data frame name |
filename |
(optional) Output filename document filename (must end in .rtf or .doc only) |
table.number |
Integer to use in table number output line |
show.conf.interval |
(TRUE/FALSE) Display confidence intervals in table. This argument is deprecated and will be removed from later versions. |
landscape |
(TRUE/FALSE) Make RTF file landscape |
APA table object
# View top few rows of viagra data set from Discovering Statistics Using R
head(viagra)
# Use apa.d.table function
table1 <- apa.d.table(iv = dose, dv = libido, data = viagra)
# Save Table 1 in a .doc document
apa.save(filename = "table1.doc", table1)
# Create a table for your PDF
# Include the lines below in your rmarkdown or Quarto document
apa.knit.table.for.pdf(table1)
# delete demo file
if (file.exists("table1.doc")) {
file.remove("table1.doc")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.