Skip to contents

support function for one-hot encoding

Usage

one_hot(df)

Arguments

df

data.frame object for performing one-hot encoding

Value

data.frame object with factor variables one-hot encoded for each level