Description Usage Arguments Examples
This is the table making function.
1 2 3 4 5 6 7 8 9 |
x |
is the data |
rownamesvar |
variable name in x that identifies the rownames (either rownamesvar or rownames is required) |
rownames |
vector that identifies the rownames (either rownames or rownamesvar is required) |
colnames |
vector of column names |
colgroups |
is a list of two specifically named vectors, names and pattern, that determine the column group names and the spanning pattern. The spanning pattern is the number of columns grouped under each column group. For example, colgroups = list(names = c("a group" "another group"), pattern = c(3, 2)) establishes two column groups, spanning 3 and 2 columns, respectively. See the vignettes for more examples. |
rowlevels |
is a vector of integers indicating the indentation level (row-level) of each row. EPI's CSS allows for row levels 1 through 4. |
header |
Set to FALSE if you want suppress the column headers. |
file |
is the filename for saving the table snippet as a file. By default, this is NULL and epitable() does not write to a file. |
selfcontained |
If writing to file, the default selfcontained=FALSE will write a table snippet. selfcontained=TRUE writes a complete html page, with header, body, etc. |
useViewer |
When wrapping epitable in a print() command, set to FALSE to show snippet in console. |
extrarowX |
is used to add an extra row before row X of the table. See the vignettes for examples. |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.