pivot_and_separate: Take a wide-formatted response from the Census API and...

View source: R/pivot_and_separate.R

pivot_and_separateR Documentation

Take a wide-formatted response from the Census API and convert it to long

Description

Take a wide-formatted response from the Census API and convert it to long

Usage

pivot_and_separate(.frame, ...)

Arguments

.frame

a data frame from the census with columns named like B01001_001E

...

<dynamic-dots> named regular expressions for extracting fields from the column names

Value

a pivoted data frames where the columns that matched the regular expression are converted to rows that are described by the extracted fields.

See Also

tidyr::pivot_longer()

tidyr::separate_wider_regex()


higherX4Racine/hercacstables documentation built on Jan. 15, 2025, 9:58 p.m.