Rdocumentation
powered by
Learn R Programming
extracat (version 1.6-3)
imat: indicator variables
Description
converts a single categorical variable into indicator variables
Usage
imat(s)
Arguments
s
factor variable
Value
matrix
Examples
Run this code
imat(housing$Type)
Run the code above in your browser using
DataLab