as.function.fd {fda} | R Documentation |
Create a function to evaluate a functional data or basis object for specific argument values.
## S3 method for class 'basisfd': as.function(x, variable='x', ...) ## S3 method for class 'fd': as.function(x, variable='x', ...) ## S3 method for class 'fdSmooth': as.function(x, variable='x', ...)
x |
an object of class basisfd , fd , or fdSmooth .
|
variable |
A character string giving the name to be used for the formal argument of the resulting function. |
... |
Not currently used. |
Create a function calling eval.basisfd(variable, x), eval.fd(variable, x) or eval.fdSmooth(variable, x).
An R
function implementing the evaluation.
Spencer Graves
bspl1.1 <- create.bspline.basis(norder=1, breaks=0:1) bspl1.1f <- as.function(bspl1.1)