subset.dsensemble: Subsetting esd objects

View source: R/subset.R

subset.dsensembleR Documentation

Subsetting esd objects

Description

The subset method tries to be 'intelligent', and if the list has no names, then the list contains two vectors of length 2, then this is interpreted as a region, e.g. argument is = list( c(lon.min,lon.max),c(lat.min,lat.max) ). If, on the other hand, is = list( lon=1:50,lat=55:65 ), then the function picks the longitudes and latitudes which match these. This makes it flexible so that one can pick any irregular sequence.

Usage

## S3 method for class 'dsensemble'
subset(
  x,
  ...,
  it = NULL,
  is = NULL,
  ip = NULL,
  im = NULL,
  ensemble.aggregate = TRUE,
  verbose = FALSE
)

Arguments

x

'dsensemble' object (output of DSensemble) from which the subset is taken

...

additional arguments

it

A list or data.frame providing time index, e.g. a range of years like c(1979,2010), a season ('djf'), or a month ('dec' or 'december').

is

a list or data.frame providing a space index, e.g., station record or a lon(gitude) and lat(itude) range. If NULL include all.

ip

a numerical or numerical vector with indices of the principle components to be included. If NULL include all.

im

a numerical or numerical vector with indices of the ensemble members to be included. If NULL include all.

ensemble.aggregate

If TRUE, call subset.dsensemble.multi if appropriate.

verbose

If TRUE, print out diagnosics

Value

An object of the same class as the input object

Author(s)

R.E. Benestad, A. Mezghani and K. Parding

See Also

matchdate sort.station


metno/esd documentation built on April 29, 2024, 3:34 p.m.