sub-.pTs: Extract or replace parts of a pTs object

Description Usage Arguments Value Author(s) Source See Also

Description

Method for extracting or replacing a subset of a "pTs" object.

Usage

1
2
## S3 method for class 'pTs'
x[p1, p2, ...]

Arguments

x

a "pTs" object.

p1

possible row indices for the subset: x[p1, ].

p2

possible column indices for the subset: x[, p2].

...

further arguments passed on to the generic method "["; currently not needed.

Value

the original object with the replaced subset x[p1, p2], or the subset x[p1, p2]. For the latter, the return value is an object of class "pTs", unless subset is x[p1] in which case it is a numeric vector of length length(p1) where the time and lat-lon information are lost with a warning.

Author(s)

Thomas Laepple; adapted by Thomas Münch

Source

Function adapted from "proxytype.R" in paleolibary/src/.

See Also

?[.pField


EarthSystemDiagnostics/pfields documentation built on Jan. 10, 2022, 10:37 p.m.