View source: R/pivot_and_separate.R
pivot_and_separate | R Documentation |
Take a wide-formatted response from the Census API and convert it to long
pivot_and_separate(.frame, ...)
.frame |
a data frame from the census with columns named like |
... |
< |
a pivoted data frames where the columns that matched the regular expression are converted to rows that are described by the extracted fields.
tidyr::pivot_longer()
tidyr::separate_wider_regex()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.