dim.fd {fda} | R Documentation |
This returns the dimension of a functional data object, defined as the number of fuctional observations, optionally with the number of response variables.
dim.fd(x)
x |
a functional data object for which the dimenions are desired. |
If x
is NOT a functional data object, dim.fd
returns
dim(x).
a numeric vector of length 1 or 2.
## ## The simplest b-spline basis: order 1, degree 0, zero interior knots: ## a single step function ## bspl1.1 <- create.bspline.basis(norder=1, breaks=0:1) fd.bspl1.1 <- fd(0, basisobj=bspl1.1) dim.fd(fd.bspl1.1) ## ## handwrit ## ## Not run: # This took 132 seconds on an IBM T60 with 1GB RAM: HandWr <- smooth.basisPar(1:nrow(handwrit), handwrit) dim.fd(HandWr$fd) ## End(Not run)