subsetYears: Year subsets from a multimember grid

View source: R/subsetGrid.R

subsetYearsR Documentation

Year subsets from a multimember grid

Description

Retrieves a grid that is a logical subset of a multimember grid along its 'time' dimension, on a yearly basis. Multimember multigrids are supported. Subroutine of subsetGrid.

Usage

subsetYears(grid, years)

Arguments

grid

Input grid to be subset (possibly a multimember/multigrid).

years

An integer vector indicating the years to be subset.

Details

An attribute 'subset' with value 'subsetYears' is added to the Dates slot of the output subset.

Value

A grid (or multigrid) that is a logical subset of the input grid along its 'time' dimension.

Author(s)

J. Bedia

See Also

Other subsetting: getTemporalIntersection(), intersectGrid(), intersectGrid.spatial(), intersectGrid.time(), limitArea(), subsetCluster(), subsetDimension(), subsetGrid(), subsetMembers(), subsetRuntime(), subsetSeason(), subsetSpatial(), subsetStation(), subsetVar()


SantanderMetGroup/transformeR documentation built on Nov. 25, 2024, 1:25 p.m.