subset: Subset modes in EotStacks

Description Usage Arguments Value Examples

Description

Extract a set of modes from an EotStack

Usage

1
2
3
4
5
## S4 method for signature 'EotStack'
subset(x, subset, drop = FALSE, ...)

## S4 method for signature 'EotStack,ANY,ANY'
x[[i]]

Arguments

x

EotStack to be subset

subset

integer or character. The modes to ectract (either by integer or by their names)

drop

if TRUE a single mode will be returned as an EotMode

...

currently not used

i

number of EotMode to be subset

Value

an Eot* object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(vdendool)

nh_modes <- eot(x = vdendool, y = NULL, n = 3, 
                standardised = FALSE, 
                verbose = TRUE)
                
subs <- subset(nh_modes, 2:3) # is the same as
subs <- nh_modes[[2:3]]

## effect of 'drop=FALSE' when selecting a single layer
subs <- subset(nh_modes, 2)
class(subs)
subs <- subset(nh_modes, 2, drop = TRUE)
class(subs)

remote documentation built on May 1, 2019, 11:30 p.m.