When using data obtained via ssarp::get_data()
and filtered with
ssarp::find_areas()
for a publication, you must keep a record of the
datasets used in your analysis. This function assists in creating the
dataframe necessary to follow GBIF's citation guidelines (see References).
Arguments
- occs
The occurrence record dataframe returned by
ssarp::get_data()
orssarp::find_areas()
.
Value
A dataframe of dataset keys and the number of occurrence records
associated with each key that were gathered with ssarp::get_data()
and/or
filtered with ssarp::find_areas()
.
References
Data obtained via
ssarp::get_data()
and filtered withssarp::find_areas()
falls under the derived datasets distinction
Examples
# The GBIF key for the Anolis genus is 8782549
# Read in example dataset filtered from:
# dat <- rgbif::occ_search(taxonKey = 8782549,
# hasCoordinate = TRUE,
# limit = 10000)
dat <- read.csv(system.file("extdata",
"ssarp_Example_Dat.csv",
package = "ssarp"))
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
#> Error in read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...): no lines available in input
source_df <- get_sources(occs = dat)
#> Error: object 'dat' not found