Description Usage Arguments Value Examples
View source: R/FunctionBNGdataprep.R
This function removes absence data (as the models generate their own pseudo-absences), converts British National Grid grid references into easting and northing coordinates and removes data from Northern Ireland to allow modelling using GB data layers.
1 2 3 | bngprep(speciesdf, bngCol = "OSGR", precisionCol = "precision",
datafrom = "NBNatlas", minyear = 0, maxyear = 0, mindata = 5000,
covarRes = 300)
|
speciesdf |
Data frame exported from NBN gateway or NBN atlas with data for a species. |
bngCol |
The column name of the column in |
precisionCol |
The column name of the column in |
datafrom |
Character, one of 'NBNgateway' or 'NBNatlas', indicating the data source.'NBNatlas' is the default.The format of data from the NBN Gateway and NBN Atlas differ, which is why the 'datafrom' field must be specified when preparing the data using the bngprep function. |
minyear |
Numeric, the earliest year from which data should be selected. Year inclusive, data older than this will be discarded. |
maxyear |
Numeric, the latest year from which data should be used. Year inclusive, data newer than this will be discarded. |
mindata |
The target minimum number of data points to return. If this is specified, the lowest resolution data will be discarded if there are enough higher resolution data points available to reach this target. |
covarRes |
The resolution of the environmental covariate data layers, in metres. Data will not be discarded if it is of higher resolution than the environmental covariate layers. |
A copy of speciesdf
with absence data removed, easting and northing columns generated from BNG grid references and data from Northern Ireland removed.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.