join_area | R Documentation |
Join cell_id data from sdm_area to a occurrences
join_area(occ, pred)
occ |
A |
pred |
A |
This function is key in this SDM workflow. It attaches cell_id values to occ
, deletes
records outside pred
and allows the use of pseudoabsences. This function also tests if
CRS from both occ
and pred
are equal, otherwise the CRS of pred
is used to
convert occ
.
A occurrences
object with cell_id
to each record.
Luíz Fernando Esser (luizesser@gmail.com) https://luizfesser.wordpress.com
occurrences_sdm sdm_area input_sdm
pseudoabsences
# Create sdm_area object:
sa <- sdm_area(parana, cell_size = 50000, crs = 6933)
# Include predictors:
sa <- add_predictors(sa, bioc) |> select_predictors(c("bio1", "bio4", "bio12"))
# Include scenarios:
sa <- add_scenarios(sa, scen)
# Create occurrences:
oc <- occurrences_sdm(occ, crs = 6933) |> join_area(sa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.