View source: R/cluster_regions.R
cluster_regions | R Documentation |
Cluster a data frame with two first columns indicating long and lat coordinates
cluster_regions(
x,
plot = FALSE,
n.clus = NULL,
nstart = 25,
K.max = NULL,
B = 100,
res = NULL
)
x |
data frame to be clustered |
plot |
Boolean whether to plot the cluster as map |
n.clus |
Number of clusters to perform. If null it will be computed |
nstart |
burn up start value |
K.max |
maximum number of clusters to estimate |
B |
number of runs |
res |
Resolution of the greographical grid |
Returns an error if filename
does not exist.
Clustered data frame.
## Not run:
accident_2015 <- fars_read("Project/data/accident_2015.csv.bz2")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.