Usage
data2fd(y, argvals=seq(0, 1, len = n), basisobj,
fdnames=defaultnames,
argnames=c("time", "reps", "values"))Arguments
y
an array containing sampled values of curves.
If y is a vector, only one replicate and variable are assumed.
If y is a matrix, rows must correspond to argument
values and columns to replications or cases, and it will be assumed
t
argvals
a set of argument values. If this is a vector, the same set of
argument values is used for all columns of y. If argvals is a
matrix, the columns correspond to the columns of y, and contain the
argument values for t
basisobj
either: A basisfd object created by function create.basis.fd(),
or the value NULL, in which case a basisfd object is set up by
the function, using the values of the next three arguments.
fdnames
A list of length 3, each member being a string vector containing labels for the
levels of the corresponding dimension of the discrete data. The first dimension
is for argument values, and is given the default name "time", the second is
for replications,
argnames
a character vector of length 3 containing:- the name of the argument, e.g. "time" or "age"
- a description of the cases, e.g. "weather stations"
- the name of the observed function value, e.g. "temperature"
These strings are