Obtain the growth reference behind the chart

Obtain the call to a reference used on a chart

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

get_reference_call(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_reference() returns an object of class reference.

get_reference_call() returns a string with the call. Your library must contain the clopus package to execute the call by eval(parse(text = call)).

See also

reference-class

Examples

if (FALSE) { # \dontrun{
ref <- get_reference("NJAA", "hgt")
} # }
get_reference_call("NJAA", "hgt")
#> [1] "clopus::nl2009[[\"nl2009.mhgtNL\"]]"