Subset a Padrino database object

pdb_subset(pdb, ipm_ids)

Arguments

pdb

A Padrino database object.

ipm_ids

The ipm_id's to subset the database to.

Value

A new Padrino database object containing only the models specified in ipm_ids.

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_ids based on searching and then pass that to subset. See Examples

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)

}