formatData | R Documentation |
This function subsets scheme data by years, and converts UK or NI grid cells to eastings and northings on the OSGB36 coordinate reference system.
formatData(occ, taxa, minYear, maxYear, degrade = TRUE)
occ |
String. data.frame with occurrence records. Must have columns "YEAR", "CONCEPT" (species name) and one of "TO_GRIDREF" or "SQ_1KM". |
taxa |
string. Taxonomic group. There must be a file in inPath that contains the taxonomic group name. |
minYear |
Numeric. Drop all records prior to this year. |
maxYear |
Numeric. Drop all records later than this year. |
degrade |
Logical. Whether or not to degrade the data from all records to uniqe species/ location records. |
A dataframe with four columns: species, year, eastings and northings.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.