Learn R Programming

RMOA (version 1.1.0)

factorise: Convert character strings to factors in a dataset

Description

Convert character strings to factors in a dataset

Usage

factorise(x, ...)

Value

a data.frame with the information in x where character columns are converted to factors

Arguments

x

object of class data.frame

...

other parameters currently not used yet

Examples

Run this code
data(iris)
str(iris)
mydata <- factorise(iris)
str(mydata)

Run the code above in your browser using DataLab