Learn R Programming

jwutil (version 1.1.1)

getFactorNames: get names of the factor fields in a data frame

Description

Get the names of those fields in a data frame which are factors.

Usage

getFactorNames(x, consider = names(x))

getNonFactorNames(x, consider = names(x))

Arguments

x

data frame

consider

character vector of field names of the data frame to test, default is to use all of them.

Value

vector