Learn R Programming

biogeo (version 1.0)

precisionenv: Check precision of records

Description

Determines whether any records have a lower precision than that of the selected raster file

Usage

precisionenv(dat, rst, x = "x", y = "y")

Arguments

dat
A dataframe containing the required biogeo fields (see checkdatastr)
rst
A raster
x
x-coordinate in decimal degrees
y
y-coordinate in decimal degrees

Value

A dataframe containing the field envpreci, with ones when the point records have a lower precision than the raster and zero otherwise.

See Also

precisioncheck, errorcheck, quickclean

Examples

Run this code
## Not run: 
# dem<-raster(dem,xmn=-180, xmx=180, ymn=-60, ymx=90)
# datpce <- precisionenv(dat, dem, x='x', y='y')
# datpce[datpce$envpreci==1,] #View records with possible precision problems
# ## End(Not run)

Run the code above in your browser using DataLab