Subset a Padrino database object
pdb_subset(pdb, ipm_ids)
A Padrino database object.
The ipm_id
's to subset the database to.
A new Padrino database object containing only the models specified in
ipm_ids
.
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
if (FALSE) {
data(pdb)
poa_ind <- pdb$Metadata$ipm_id[pdb$Metadata$tax_family == "Poaceae"]
poa_db <- pdb_subset(pdb, ipm_ids = poa_ind)
}