factorsAsStrings {MSnbase} | R 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))

[Package MSnbase version 2.12.0 Index]