precisionenv: Check precision of records

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
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.

Author(s)

Vernon Visser and Mark Robertson

See Also

precisioncheck, errorcheck, quickclean

Examples

1
2
3
4
5
6
## 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)

biogeo documentation built on May 1, 2019, 8:05 p.m.