View source: R/fcts packages.R
ind_clust | R Documentation |
Perform individual-level clustering (first step) of movement metrics. This function uses the output of table_cluster and perform a mixture-model. Users can select which variables will be used and the maximum number of clusters. See also mclust
ind_clust(table, max.n.clust = 8, modelname = "EEV",
vars = c("Weight", "Degree", "Betweenness", "Speed", "DotP"))
table |
An output from the table_cluster function |
max.n.clust |
The maximum number of clusters to test, see the documentation for mclust for more information. Default = 8. |
modelname |
The model structure of the clustering, see the documentation for mclust for more information. Default is equal mean and variance for each clusters (EEV). |
vars |
The variable to be included. Default = c("Weight", "Degree", "Betweenness", "Speed", "DotP") |
A list object with each element representing an individual.
data(albatross)
grid<-loop(albatross, 35000)
table_grid<-table_cluster(albatross, grid)
ls_ind<-ind_clust(table_grid, max.n.clust=8)
table(unlist(lapply(ls_ind, function(x) x$G)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.