Skip to contents

Convert non-numeric columns to character

Usage

cols_to_char(data)

Arguments

data

A data frame with columns that need to be converted.

Value

A data frame with all non-numeric columns converted to character.

Examples

df <- cols_to_char(iris)
class(df$Species)
#> [1] "character"