Skip to contents

to convert categorical variables into multiple binary variables with 1 and 0.

Usage

one_hot(data)

Arguments

data

data frame containing only categorical variables

Value

data frame containing expanded form of binary variables