50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


spTimer (version 0.8)

spT.keep.morethan.dist: Present one coordinate in a defined area for presentation

Description

This function is used to present one coordinate in a defined area to avoid cutter.

Usage

spT.keep.morethan.dist(coords, tol.dist=100)

Arguments

coords
X and Y axes/ longitude and latitude values.
tol.dist
The tolerance limit for the distance.

See Also

spT.geodist, dist, spT.data.selection.

Examples

Run this code
##

data(NYdata)	
head(NYdata)
NYsite<-unique(NYdata[,2:3])	
head(NYsite)
spT.keep.morethan.dist(NYsite,tol.dist=100)

# Including values 
dat<-cbind(NYsite,value=rnorm(dim(NYsite)[[1]]))
head(dat)
spT.keep.morethan.dist(dat,tol.dist=100)

##

Run the code above in your browser using DataLab