View source: R/make_dummy_cols.R
make_dummy_cols | R Documentation |
Makes dummy columns in a data frame, given an ID variable and a dummy variable
make_dummy_cols(data_df, id_var, dummy_var)
data_df |
A data frame |
id_var |
An identity variable to pivot against |
dummy_var |
A dummy variable |
A data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.