factor2character: Converts all factor variables in a dataframe to character...

Description Usage Arguments Value Author(s) Examples

View source: R/factor2character.R

Description

Converts all factor variables in a dataframe to character variables

Usage

1

Arguments

dframe

A dataframe

Value

The same dataframe with the factor variables converted to character variables.

Author(s)

Landon Sego

Examples

1
2
3
4
x <- data.frame(a=factor(c(rep(1,4),rep(2,4),rep(3,4))), y=rnorm(12))
str(x)
x <- factor2character(x)
str(x)

Smisc documentation built on May 2, 2019, 2:46 a.m.