R/get_reference.R
, R/get_reference_call.R
get_reference.Rd
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))
The chart code, returned by create_chartcode()
Name of the response variable
The chart group. If not specified, it is calculated automatically.
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))
.
reference-class
if (FALSE) { # \dontrun{
ref <- get_reference("NJAA", "hgt")
} # }
get_reference_call("NJAA", "hgt")
#> [1] "clopus::nl2009[[\"nl2009.mhgtNL\"]]"