describe_names: Create dictionary defining controlled vocabulary realizations

Description Usage Arguments Value Examples

View source: R/describe.R

Description

Create dictionary defining controlled vocabulary realizations

Usage

1
describe_names(vars, convo, desc_str = "{level1} of entity {level2}")

Arguments

vars

Character vector of variable names

convo

Controlled vocabulary object

desc_str

Prototypical string from which to create variable definition

Value

data.frame data dictionary

Examples

1
2
3
4
vars <- c("AMT_A_2019", "IND_B_2020")
filepath <- system.file("", "ex-convo.yml", package = "convo")
convo <- read_convo(filepath)
describe_names(vars, convo, desc_str = "{level1} of {level2} in given year")

emilyriederer/convo documentation built on Oct. 5, 2021, 4:08 p.m.