sub-.lisst: Subset lisst objects

Description Usage Arguments Details See Also Examples

Description

Performs subsetting by index, depth or time.

Usage

1
2
## S3 method for class 'lisst'
x[i, j, ..., drop = TRUE]

Arguments

x

A lisst object.

i

An integer vector, a time object (e.g., POSIXct), or a character string specifying deph range (in meters) or time range in the ISO 8601 format.

j

An integer vector or a character string to macth a column name.

...

Arguments to be passed to methods.

drop

Logical. Should the lisst and data.frame properties be dropped?

Details

Subseting can be done by sample index using a vector of integers, by depth using a string of the form 'depth1|depth2', or by time using a time object vector (e.g. POSIXct) or a caracter string in the format of ISO 8601. The time subsetting actually uses the xts subsetting functions, see ?`[.xts` for details.

See Also

`[.xts`

Examples

1
2
3
4
lsub <- donkmeer_bin[1:3, ]         # First three samples
lsub <- donkmeer_bin['0|5', ]       # First five meters
lsub <- donkmeer_bin['2018-03', ]   # Samples for march 2018
lsub <- donkmeer_bin['2017-06/2018-06', ] # Samples between June 2017 to June 2018

AlexCast/lisst documentation built on July 17, 2021, 12:58 a.m.