fdata S3 Group Generic Functions
fdata Group generic methods defined for four specified groups of functions, Math, Ops, Summary and Complex.
order.fdata and split.fdata: A wrapper for the order and split function for fdata object.
## S3 method for class 'fdata' Math(x, ...) ## S3 method for class 'fdata' Ops(e1, e2 = NULL) ## S3 method for class 'fdata' Summary(..., na.rm = FALSE) ## S3 method for class 'fdata' split(x, f, drop = FALSE, ...) order.fdata(y, fdataobj, na.last = TRUE, decreasing = FALSE) is.fdata(fdataobj)
x |
An |
... |
Further arguments passed to methods. |
e1, e2 |
|
na.rm |
|
f |
a factor in the sense that as.factor(f) defines the grouping, or a list of such factors in which case their interaction is used for the grouping. |
drop |
|
y |
A sequence of numeric, complex, character or logical vectors, all of the same length, or a classed R object. |
fdataobj |
|
na.last |
for controlling the treatment of NAs. If TRUE, missing values in the data are put last; if FALSE, they are put first; if NA, they are removed; if "keep" they are kept with rank NA. |
decreasing |
|
In order.fdata
the funcional data is ordered w.r.t the sample order of the values of vector.
split.fdata
divides the data in the fdata object x
into the groups defined by f
.
split.fdata: The value returned from split
is a list of fdata objects
containing the values for the groups. The components of the list are named by
the levels of f (after converting to a factor, or if already a factor and
drop = TRUE, dropping unused levels).\
order.fdata: returns the functional data fdataobj
w.r.t. a permutation
which rearranges its first argument into ascending or descending order.
Manuel Febrero Bande and Manuel Oviedo de la Fuente manuel.oviedo@usc.es
## Not run: data(tecator) absor<-tecator$absorp.fdata absor2<-fdata.deriv(absor,1) absor<-absor2[1:5,1:4] absor2<-absor2[1:5,1:4] sum(absor) round(absor,4) log1<-log(absor) fdataobj<-fdata(MontrealTemp) fac<-factor(c(rep(1,len=17),rep(2,len=17))) a1<-split(fdataobj,fac) dim(a1[[1]]);dim(a1[[2]]) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.