View source: R/mudata_subset.R
subset.mudata | R Documentation |
This object uses standard evalutation to subset a mudata object using character vectors of datasets, params, and locations. The result is subsetted such that all rows in the data table are documented in the other tables (provided) they were to begin with. It is preferred to use select_locations, select_params, and select_datasets to subset a mudata object, or filter_data, filter_locations, filter_params, and filter_datasets to subset by row while maintaining internal consistency.
## S3 method for class 'mudata'
subset(x, ..., datasets = NULL, params = NULL, locations = NULL)
x |
The object to subset |
... |
Used to filter the data table |
datasets |
Vector of datasets to include |
params |
Vector of parameters to include |
locations |
Vector of locations to include |
A subsetted mudata object
select_locations, select_params, select_datasets, filter_data, filter_locations, filter_params, and filter_datasets
subset(kentvillegreenwood, params = c("mintemp", "maxtemp"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.