View source: R/pipeline-helpers.R
| gather_years | R Documentation | 
tidyr::gather for year-like columns and convert them to integersHelper function: call tidyr::gather for year-like columns and convert them to integers
gather_years(
  d,
  value_col = "value",
  year_pattern = YEAR_PATTERN,
  na.rm = FALSE
)
| 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 | 
| na.rm | Remove NAs flag passed on to tidyr::gather | 
The gathered (reshaped) data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.