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

# S3 method for cropr_simulation
[(x, ...)

Arguments

x

A cropr_simulation list

...

An index

Value

A subset of a cropr_simulation, keeping its attribute

Examples

if (FALSE) {
library(SticsRFiles)
sim = SticsRFiles::get_sim(workspace = "inst/extdata/stics_example_1")
sim[[1]] # returns a `cropr_simulation` list
}