Usage
contents(object, ...)
"contents"(object, sortlevels=FALSE, id=NULL, range=NULL, values=NULL, ...)
"print"(x, sort=c('none','names','labels','NAs'), prlevels=TRUE, maxlevels=Inf, number=FALSE, ...)
"html"(object, sort=c('none','names','labels','NAs'), prlevels=TRUE, maxlevels=Inf, levelType=c('list','table'), number=FALSE, nshow=TRUE, ...)
"contents"(object, dslabels, ...)
"print"(x, sort=c('none','names','labels','NAs','vars'), ...)
Arguments
object
a data frame. For html
is an object created by
contents
. For contents.list
is a list of data frames.
sortlevels
set to TRUE
to sort levels of all factor
variables into alphabetic order. This is especially useful when two
variables use the same levels but in different orders. They will
still be recognized by the html
method as having identical
levels if sorted.
id
an optional subject ID variable name that if present in
object
will cause the number of unique IDs to be printed in
the contents header
range
an optional variable name that if present in object
will cause its range to be printed in the contents header
values
an optional variable name that if present in
object
will cause its unique values to be printed in the
contents header
x
an object created by contents
sort
Default is to print the variables in their original order in the
data frame. Specify one of
"names"
, "labels"
, or "NAs"
to sort the variables by,
respectively, alphabetically by names, alphabetically by labels, or by
increaseing order of number of missing values. For
contents.list
, sort
may also be the value
"vars"
to cause sorting by the number of variables in the dataset.
prlevels
set to FALSE
to not print all levels of factor
variables
maxlevels
maximum number of levels to print for a factor
variable
number
set to TRUE
to have the print
and latex
methods
number the variables by their order in the data frame
nshow
set to FALSE
to suppress outputting number of
observations and number of NA
s; useful when these counts
would unblind information to blinded reviewers
levelType
By default, bullet lists of category levels are
constructed in html. Set levelType='table'
to put levels in
html table format.
...
arguments passed from html
to format.df
,
unused otherwise
dslabels
named vector of SAS dataset labels, created for
example by sasdsLabels