sdspatialpoints: Calculate Standard Deviation of Spatial Points

Description Usage Arguments Value Examples

View source: R/sdspatialpoints.R

Description

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.

Usage

1

Arguments

df

a data frame object.

coor

longitude and latitude of the spatial points in the format of c("lon","lat").

Value

a number of standard deviation.

Examples

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"))

nyu-mhealth/Mobility documentation built on Feb. 24, 2020, 10:37 p.m.