Learn R Programming

HKRbook (version 0.1.3)

mmstat.getVarNames: mmstat.getVarNames

Description

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

Usage

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

Value

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

Arguments

dataname

character: name of data set

vartype

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

which

integer: index number

Examples

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

Run the code above in your browser using DataLab