Description Usage Arguments Value References
View source: R/addClustering.R
Clustering is used to assign individual measurements to deployment locations.
The value of clusterRadius
is compared with the output of cluster::pam(...)$clusinfo[,'av_diss']
to determine the number of clusters.
1 2 3 4 5 6 7 8 | addClustering(
tbl,
clusterDiameter = 1000,
lonVar = "longitude",
latVar = "latitude",
maxClusters = 50,
flagAndKeep = FALSE
)
|
tbl |
tibble with geolocation information (e.g. created by |
clusterDiameter |
diameter in meters used to determine the number of clusters (see description) |
lonVar |
name of longitude variable in the incoming tibble |
latVar |
name of the latitude variable in the incoming tibble |
maxClusters |
maximum number of clusters to try |
flagAndKeep |
flag, rather then remove, bad data during clustering |
Input tibble with additional columns: deploymentID, medoidLon, mediodLat
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.