factorsAsStrings: Converts factors to strings

View source: R/utils.R

factorsAsStringsR Documentation

Converts factors to strings

Description

This function produces the opposite as the stringsAsFactors argument in the data.frame or read.table functions; it converts factors columns to characters.

Usage

factorsAsStrings(x)

Arguments

x

A data.frame

Value

A data.frame where factors are converted to characters.

Author(s)

Laurent Gatto

Examples

data(iris)
str(iris)
str(factorsAsStrings(iris))

lgatto/MSnbase documentation built on March 14, 2024, 7:06 a.m.