Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nObs

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

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

An S4 Class for Functional Data

v1.3-5
GPL-2
Authors
Clara Happ-Kurz [aut, cre]
Initial release
2020-04-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.