Learn R Programming

spTimer (version 3.0-0)

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.

Examples

Run this code
# NOT RUN {
##

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