subset_PAM | R Documentation |
Subsets of a base_PAM object according to survey sites contained in a master_selection object.
subset_PAM(base_PAM, master_selection, selection_type = "all")
base_PAM |
object of class base_PAM obtained using the function
|
master_selection |
object of class master_selection. This object can be
obtained using the functions: |
selection_type |
type of selection to be considered to subset
|
An object of class PAM_subset
containing the original
base_PAM
and other subsets of the PAM according to
selection_type
.
# Data
b_pam <- read_PAM(system.file("extdata/b_pam.rds",
package = "biosurvey"))
m_selection <- read_master(system.file("extdata/m_selection.rds",
package = "biosurvey"))
# Subsetting base PAM according to selections
## only uniform in G
sub_pam_G <- subset_PAM(b_pam, m_selection, selection_type = "G")
## All at the time
sub_pam_all <- subset_PAM(b_pam, m_selection, selection_type = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.