# S4 method for vegtable
subset(x, subset, slot="header", keep_children=FALSE,
keep_parents=FALSE, ...)
Logical vector or operation for subset.
Slot to be applied for subset.
Argument passed to subset
.
Argument passed to subset
.
Further arguments passed from or to other methods.
This function generate subsets of '>vegtable
objects through logical operations.
Such operations can be applied either to the plots, or the relations, which are
the main slots in that class.
This method can be referred to the slot species
the same way as
subset
, then the rest of the data will include only
references to the subset of species list.
# NOT RUN {
library(vegtable)
data(dune_veg)
summary(dune_veg)
## Select plots used as pastures
Pastures <- subset(dune_veg, Use == "Pasture", slot="header")
summary(Pastures)
# }
Run the code above in your browser using DataLab