Learn R Programming

paramix (version 0.0.1)

to_function: Internal Conversion of Data to Function

Description

Internal Conversion of Data to Function

Usage

to_function(x, bounds, interp_opts)

Value

a function

Arguments

x

a function or the single argument version of x in xy.coords() (as per approxfun() or splinefun() inputs). Pass through from user input, must be checked

bounds

numeric vector, length 2: the partition lower bound; not checked, result of range(make_partition(...)).

interp_opts

if x is function, ignored. Otherwise, an interpolating function and its arguments.