View source: R/separate_label.R
separate_label | R Documentation |
tidycensus datasets come with a label function containing information on the row of interest in one string. This function separates the string into multiple columns defined by the names_vector
separate_label(df, names_vector, label_col = "label")
df |
a tidycensus loaded dataset |
names_vector |
a vector of new column names corresponding to the number of variables created by the separate function. Can enter NA to omit |
label_col |
the name of the label column; usually label |
a tidycensus dataset with new variables corresponding to the split string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.