replace_GLU: replace_GLU

Description Usage Arguments Value

View source: R/module-helpers.R

Description

Replace GLU numerical codes with names, and vice versa

Usage

1
replace_GLU(d, map, GLU_pattern = "^GLU[0-9]{3}$")

Arguments

d

A tibble with a column named "GLU"

map

A tibble with columns GLU_code and GLU_name

GLU_pattern

Regular expression string to identify the GLU codes

Value

A tibble with codes substituted for pattern, or vice versa, depending on the original contents of the GLU column.


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