Description Usage Arguments Examples
This function allows you to create a summary of variables table with LaTeX formatting options.
1 2 3 4 |
tmat |
Data matrix |
digits |
The number of digits to round the values to. |
quants |
Vector of quantiles to include in the table. Values should be in [0,1]. |
SD |
Logical, include a column for standard deviations. Defaults to TRUE. |
nmis |
Logical, include a column for the number of missing observations. |
uniq |
Logica, include a column for the number of categories in the variable. Defaults to FALSE. |
str |
Logical, include a column for the class of each variable. Defaults to FALSE. |
latex |
Logical, returns table in LaTeX format via the xtable package. |
full.latex |
Logical, TRUE if want latex output to be a stand-alone LaTeX file. If latex=TRUE and full.latex=FALSE, the output can be included with an \includefilename command. This may be useful if output from this function will be included as one part of a larger set of function calls. |
lookup.names |
Vector of longer descriptive variable names, where column names should match variable names in tmat. |
filename |
Name of file where output should be saved. Default is NULL, not to save it to a file. |
screen |
Logical, TRUE if want to view results on the screen. Defaults to FALSE. |
caption |
Caption for LaTeX format |
1 2 | test.dat<-data.frame(x=rnorm(10),y=as.factor(rbinom(10,1,.5)))
summarize.class(test.dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.