Description Usage Arguments Value
View source: R/pipeline-helpers.R
Helper function: call tidyr::gather
for year-like columns and convert them to integers
1 | gather_years(d, value_col = "value", year_pattern = YEAR_PATTERN)
|
d |
Data frame to operate on (a tibble) |
value_col |
Name of the resulting (gathered) value column, string or unquoted column name |
year_pattern |
Year pattern to match against |
The gathered (reshaped) data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.