View source: R/occurrences_sdm.R
occurrences_sdm | R Documentation |
This function creates and manage occurrences
objects.
occurrences_sdm(x,
independent_test = NULL,
p = 0.1,
crs = NULL,
independent_test_crs = NULL,
...)
n_records(i)
species_names(i)
get_coords(i)
occurrences_as_df(i)
add_occurrences(oc1, oc2)
x |
A |
independent_test |
Boolean. If |
p |
Numeric. Fraction of data to be used as independent test. Standard is 0.1. |
crs |
Numeric. CRS of |
independent_test_crs |
Numeric. CRS of |
... |
A vector with column names addressing the columns with species names, longitude and
latitude, respectively, in |
i |
|
oc1 |
A |
oc2 |
A |
x
must have three columns: species, decimalLongitude and decimalLatitude. When sf
it is only necessary a species column.
n_records
return the number of presence records to each species.
species_names
return the species names.
get_coords
return a data.frame
with coordinates of species records.
add_occurrences
return a occurrences
. This function sums two occurrences
objects.
It can also sum a occurrences
object with a data.frame
object.
occurrences_as_df
returns a data.frame
with species names and coordinates.
A occurrences
object.
Luíz Fernando Esser (luizesser@gmail.com) https://luizfesser.wordpress.com
input_sdm GBIF_data occ
# Create occurrences:
oc <- occurrences_sdm(occ, crs = 6933)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.