mmstat.getVarNames: mmstat.getVarNames

View source: R/mmstat.getVarNames.R

mmstat.getVarNamesR 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")

HKRbook documentation built on Oct. 6, 2022, 9:06 a.m.