get_reference: Obtain the growth reference behind the chart

View source: R/get_reference.R

get_referenceR Documentation

Obtain the growth reference behind the chart

Description

Obtain the growth reference behind the chart

Obtain the call to a reference used on a chart

Usage

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

## Not run: 
ref <- get_reference("NJAA", "hgt")

## End(Not run)
get_reference_call("NJAA", "hgt")

growthcharts/chartcatalog documentation built on Dec. 9, 2024, 8:43 p.m.