sdspatialpoints: Calculate Standard Deviation of Spatial Points

View source: R/sdspatialpoints.R

sdspatialpointsR Documentation

Calculate Standard Deviation of Spatial Points

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

sdspatialpoints(df, coor = NULL, ...)

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

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 July 4, 2025, 9:54 a.m.