dim.fd {fda}R Documentation

Dimension of a functional data object

Description

This returns the dimension of a functional data object, defined as the number of fuctional observations, optionally with the number of response variables.

Usage

dim.fd(x)

Arguments

x a functional data object for which the dimenions are desired.

Details

If x is NOT a functional data object, dim.fd returns dim(x).

Value

a numeric vector of length 1 or 2.

See Also

dim fd

Examples

##
## 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)


[Package fda version 2.1.1 Index]