extract_records: extract records from GBIF and format them for use in soaR

View source: R/extract_records.R

extract_recordsR Documentation

extract records from GBIF and format them for use in soaR

Description

This function is used to scrape GBIF for occurrence records for a chosen taxonomic group, on a chosen continent.

Usage

extract_records(
  continent = NULL,
  country = NULL,
  year,
  taxon,
  write_output,
  output_path,
  output_name
)

Arguments

continent

String. E.g. "south_america", "europe". Do not specify unless country is NULL.

country

string. E.g. "BR" for Brasil, "AR" for Argentina, and "CL" for Chile

year

string. year(s) for which to extract data. For a range, format as e.g. "1995,2010". For a single year, as e.g. "2005".

taxon

numeric. GBIF taxonomic key.

write_output

logical

output_path

string. Directory in which to save outputs.

output_name

string. Name of file to be saved if write_output = TRUE.


robboyd/soaR documentation built on April 24, 2022, 9:44 a.m.