fdfAsInt: Convert a data frame of factors to integers.

Description Usage Arguments Value See Also

View source: R/utils.rjbg.R

Description

Converts a data.frame that consists columns of factors into a data.frame consisting of integers

Usage

1
  fdfAsInt(x, useLevelNames = T)

Arguments

x

an object of class data.frame

useLevelNames

logical, indicating whether the labels of the levels should be converted to integers. This only makes sense if the levels are integers stored as characters. e.g. factor(c("3", "2", "3"))

Value

The data.frame with columns converted to integers

See Also

intAsFDF


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.