Description Usage Arguments Details Value Author(s) Examples
The mat-file is expected to have one component "cluster.info" which, in turn contains a list of lists. Each of the latter is a nx1 matrix with cluster assignments (the number of clusters at each cut is given by the number of unique entries)
1 2 3 4 5 6 | read.tree(
file = system.file("extdata/sbm_1_145_0_atlas.mat", package = "clusterLUTs"),
path = ".",
add.full = TRUE,
...
)
|
file |
Matlab hclust result file (Matlab *.mat-file) |
path |
directory where to find file |
add.full |
add a fully specified column if there is none? |
... |
ignored |
Each of these matrices (vectors) is forms one column in the output matrix as
would be obtained by cutree
. The matrix is given column
names indicating the number of clusters for that cut.
a matrix with just the cluster assignments
Benno Pütz puetz@psych.mpg.de
1 | tree <- read.tree()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.