nSeasons: Get the number of seasons from an object

nSeasonsR Documentation

Get the number of seasons from an object

Description

Get the number of seasons from an object.

Usage

nSeasons(object)
nSeasons(object, ...) <- value

Arguments

object

an object for which the notion of number of seasons makes sense.

value

a positive integer number.

...

further arguments for methods.

Details

These are generic functions.

Methods for nSeasons are straightforward when the property makes sense for objects from a class. In contrast, methods for the replacement version, `nSeasons<-`, should be defined carefully and may not even be feasible.

Value

an integer number

Methods

No methods for `nSeasons<-` are defined in package lagged. The methods defined for nSeasons are given below.

signature(object = "slMatrix")

Author(s)

Georgi N. Boshnakov

Examples

m <- slMatrix(matrix(1:12, nrow = 4))
m
nSeasons(m)

lagged documentation built on Aug. 7, 2022, 5:19 p.m.