gather_years: Helper function: call 'tidyr::gather' for year-like columns...

Description Usage Arguments Value

View source: R/pipeline-helpers.R

Description

Helper function: call tidyr::gather for year-like columns and convert them to integers

Usage

1
gather_years(d, value_col = "value", year_pattern = YEAR_PATTERN)

Arguments

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

Value

The gathered (reshaped) data frame.


rohmin9122/gcam-korea-release documentation built on Nov. 26, 2020, 8:11 a.m.