sub-.cropr_simulation: '[' method for 'cropr_simulation'

[.cropr_simulationR Documentation

[ method for cropr_simulation

Description

This method ensure keeping the cropr_simulation attribute when subsetting a cropr_simulation list.

Usage

## S3 method for class 'cropr_simulation'
x[...]

Arguments

x

A cropr_simulation list

...

An index

Value

A subset of a cropr_simulation, keeping its attribute

Examples

path <- file.path(get_examples_path("sti"), "workspace1")
sim <- SticsRFiles::get_sim(workspace = path)
# sim returns a `cropr_simulation` list


SticsRFiles documentation built on Sept. 12, 2024, 7:41 a.m.