pdb_subset {Rpadrino} | R Documentation |
Subset a Padrino database object
Description
Subset a Padrino database object
Usage
pdb_subset(pdb, ipm_ids)
Arguments
pdb |
A Padrino database object. |
ipm_ids |
The |
Details
Currently, the only variable to subset with is the ipm_id
.
Eventually, subsetting based on other variables will be possible with syntax
similar to subset
. At the moment, users will need to create a vector
of ipm_id
s based on searching and then pass that to subset. See
Examples
Value
A new Padrino database object containing only the models specified in
ipm_ids
.
Examples
## Not run:
data(pdb)
poa_ind <- pdb$Metadata$ipm_id[pdb$Metadata$tax_family == "Poaceae"]
poa_db <- pdb_subset(pdb, ipm_ids = poa_ind)
## End(Not run)
[Package Rpadrino version 0.0.5 Index]