mmstat.getVar | R Documentation |
Returns the from a data set a variable from the given type.
mmstat.getVar( dataname = NULL, varname = NULL, vartype = NULL, na.action = stats::na.omit )
dataname |
integer: number of data set |
varname |
integer: number of variable |
vartype |
character: variable type, one of |
na.action |
function: indicate what should happen when the data contain NAs (default: stats::na.omit) |
a variable of the given type
# make sure that no other data sets are loaded mmstat.set(datasets=NULL) mmstat.getDataNames(mmstat.rds("CARS")) # summary of first numeric variable in first data set in mmstat str(mmstat.getVar(1, 1, 'numeric')) # summary of first factor variable in first data set in mmstat str(mmstat.getVar(1, 1, 'factor'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.