Description Usage Arguments Value Examples
View source: R/sdspatialpoints.R
This function measures the distribution of spatial points by calculating standard deviation of the distance between points and their centroid. Centroid is the mean longitude and latitute of all the points provided. Distance is calculated based on Vincenty's great circle distance formula with default unit as meters.
1 | sdspatialpoints(df, coor = NULL, ...)
|
df |
a data frame object. |
coor |
longitude and latitude of the spatial points in the format of c("lon","lat"). |
a number of standard deviation.
1 2 3 4 | lon<- c(-70.1, -70.5, -70.3)
lat<- c(40.74, 40.75, 40.76)
lonlat<- data.frame(lon, lat)
sdspatialpoints(lonlat, coor = c("lon","lat"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.