Skip to contents

Create sparse indicator matrix from factor

Usage

preprocess_indicator(x)

Arguments

x

a factor

Value

sparse indicator matrix with levels as columns