pdb_subset: Subset a Padrino database object

View source: R/subset.R

pdb_subsetR 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 ipm_id's to subset the database to.

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

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)


Rpadrino documentation built on Sept. 23, 2023, 1:06 a.m.