Learn R Programming

jwutil (version 1.2.3)

get_factor_fields: 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

get_factor_fields(x, consider = names(x))

get_non_factor_fields(x, consider = names(x))

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

Functions

  • get_non_factor_fields: Get the fields which are not factors, instead.

  • getFactorNames: Deprecated

  • getNonFactorNames: Deprecated