nObs: Get the number of observations

nObsR Documentation

Get the number of observations

Description

This functions returns the number of observations in a funData, irregFunData or multiFunData object.

Usage

nObs(object)

Arguments

object

An object of class funData, irregFunData or multiFunData.

Value

The number of observations in object.

See Also

funData, irregFunData, multiFunData

Examples

# Univariate
object <- funData(argvals = 1:5, X = rbind(1:5, 6:10))
nObs(object)

# Univariate (irregular)
irregObject <- irregFunData(argvals = list(1:5, 2:4), X = list(2:6, 3:5))
nObs(irregObject)

# Multivariate
multiObject <- multiFunData(object, funData(argvals = 1:3, X = rbind(3:5, 6:8)))
nObs(multiObject)

funData documentation built on May 29, 2024, 6:08 a.m.