h_get_design_mat {junco} | R Documentation |
Helper Function to Create Logical Design Matrix from Factor Variable
Description
Helper Function to Create Logical Design Matrix from Factor Variable
Usage
h_get_design_mat(df, .var)
Arguments
df |
( |
.var |
( |
Value
The logical matrix with dummy encoding of all factor levels.
Examples
h_get_design_mat(df = data.frame(a = factor(c("a", "b", "a"))), .var = "a")
[Package junco version 0.1.1 Index]