mmstat.getVarNames {HKRbook}R Documentation

mmstat.getVarNames

Description

Returns the variable names of a specific type from a mmstat data set.

Usage

mmstat.getVarNames(dataname, vartype, which = NULL)

Arguments

dataname

character: name of data set

vartype

character: type of variable, either numeric, ordered, factor, or binary

which

integer: index number

Value

a vector or element of variable names which have the type vartype

Examples

# Load CAR data set into mmstat
mmstat.getDataNames(mmstat.rds("CARS"))
# Extract names of numeric variables
mmstat.getVarNames(1, "numeric")

[Package HKRbook version 0.1.3 Index]