https://github.com/cran/fda
Tip revision: 765162c86e8dc963e361b37bbd4d12df069e3283 authored by J. O. Ramsay on 04 April 2006, 00:00:00 UTC
version 1.1.1
version 1.1.1
Tip revision: 765162c
subscript.R
"[.fd" <- function(fdobj, i=TRUE, j=TRUE, drop=FALSE)
{
# select subsets of curves in a functional data object
coef <- fdobj$coefs
ndim <- length(dim(coef))
if(ndim == 2) {
coefselect <- coef[, i]
} else {
coefselect <- coef[, i, j]
}
fd(coefselect, fdobj$basis, names(fdobj$fdnames))
}