Learn R Programming

fda (version 2.1.1)

dim.fd: 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.

Value

  • a numeric vector of length 1 or 2.

Details

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

See Also

dim fd

Examples

Run this code
##
## 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
##

# This took 132 seconds on an IBM T60 with 1GB RAM:  
HandWr <- smooth.basisPar(1:nrow(handwrit), handwrit)

dim.fd(HandWr$fd)

Run the code above in your browser using DataLab