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 30, 2017, 1:55 a.m.

Search within the Smisc package
Search all R packages, documentation and source code