View source: R/radius_of_gyration.R
radius.of.gyration | R Documentation |
Given a series of locations denoted by lat/lon coordinates, the radius of gyration for individual is calculated.
radius.of.gyration(lat, lon, w = rep(1, length(lat)))
lat, lon |
The geographic coordinates of locations |
w |
The weight value for each location |
The radius of gyration (km)
M. C. Gonzalez, C. A. Hidalgo, and A.-L. Barabasi, "Understanding individual human mobility patterns," Nature, vol. 453, no. 7196, pp. 779-782, Jun. 2008.
midpoint
lat <- c(30.2, 30, 30.5) lon <- c(120, 120.4, 120.5) radius.of.gyration(lat, lon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.