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 Nov. 12, 2024, 10:58 a.m.