View source: R/helper_functions.R
ed2_expand_wide | R Documentation |
Expand multiple-response fields into wide data form
ed2_expand_wide(df, col, clean_names = TRUE)
df |
The data frame containing the field to expand |
col |
The column name to split into wide form |
clean_names |
Whether new wide field names should be cleaned. Defaults to TRUE. |
A wide form dataframe with col
field separated into different columns and filled with TRUE or FALSE values.
## Not run: humans <- ed2_human() humans_reduced <- dplyr::select(humans, event_name, participant_id, travel_reason) humans_reduced_wide <- ed2_expand_wide(humans_reduced, travel_reason) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.