Description Usage Arguments Details Value Examples
View source: R/an1_gain_loss.R
Filter data and compute gains and losses
1 2 | an1_gain_loss(x, nocc = 10, min_year_AHI = 1965, max_year_AHI = 1982,
rm_outlier = TRUE, verbose = FALSE)
|
x |
data set of observation see |
nocc |
Only species that have more than |
min_year_AHI |
First year for AHI (see |
max_year_AHI |
Last year for AHI (see |
rm_outlier |
a logical. Should outlier be removed? Default is set to |
verbose |
a logical. Should extra information be reported on progress? Default is set to |
min_year_AHI
and max_year_AHI
are used to reproduce the analysis with
a subset of the dataset as used in Fig. S3.
A list of six elements:
sf_bsm_ahi
: a sf object including filtered data,
gain_loss
: gains and losses for all lakes,
beta_AHI
: beta diversity measure in AHI (historical survey),
beta_BSM
: beta diversity measure in BSM (contempory survey),
nm_ahi
: column names of ahi presence/absence columns in AHI,
nm_bsm
: column names of bsm presence/absence columns in BSM.
1 | res0 <- an1_gain_loss(sf_bsm_ahi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.