Obtain the name of the reference code used on a chart

get_refcode(chartcode, yname, chartgrp = get_chartgrp(chartcode))

Arguments

chartcode

The chart code, returned by create_chartcode()

yname

Name of the response variable

chartgrp

The chart group. If not specified, it is calculated automatically.

Value

get_refcode() returns a string.

Examples

get_refcode("NJAA", "hgt")
#> [1] "nl_2009_hgt_male_nl"