Obtain the tx() transformation function

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

Arguments

chartcode

The chart code, returned by create_chartcode()

yname

Names of the response variable

chartgrp

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

Value

An function with one argument x

Examples

get_tx("NJAA", "hgt", "nl2010")
#> function (x) 
#> x * 12
#> <environment: 0x559f82977da0>