separate_label: Separate tidycensus label column

View source: R/separate_label.R

separate_labelR Documentation

Separate tidycensus label column

Description

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

Usage

separate_label(df, names_vector, label_col = "label")

Arguments

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

Value

a tidycensus dataset with new variables corresponding to the split string


dpowerstp/acsprocess documentation built on Sept. 4, 2022, 10:18 a.m.