tableAPA: Create APA style tables

Description Usage Arguments Value

Description

This function formats a table in HTML format that is ready for publication.

Usage

1
2
tableAPA(DataT, bys, DVcol, nameIV, nameslvl1, nameslvl2 = NULL,
  nameslvl3 = NULL, tablew = "100%")

Arguments

DataT

Data.table containing the data

bys

vector of the names of the columns in DataT that will form the row names. Slowest to fastest varying columns.

DVcol

string variable containing the name of the columns in DataT that contain the DVs. Single string of names separated by commas.

nameIV

string variable containing the name of the independant Variable.

nameslvl1

vector of string variables giving the label of each column. If two column label cells are merged, then put NA for the second column's label.

nameslvl2

vector of string variables giving the label of each column at the second level of headings. If two column label cells are merged, then put NA for the second column's label. (optional)

nameslvl3

vector of string variables giving the label of each column at the third level of headings. If two column label cells are merged, then put NA for the second column's label. (optional)

tablew

width of the table, either in pixels.

Value

string variable containing the html code for the table.


VinLaflamme/muCoVL documentation built on May 7, 2019, 7:14 p.m.