Skip to contents

Batch-cluster several data sets

Usage

morie_cluster_batch(datasets, k = 2L, ...)

Arguments

datasets

A named list of data inputs.

k

Number of clusters (applied to each).

...

Passed to morie_cluster().

Value

A named list of morie_cluster objects.

Examples

morie_cluster_batch(list(a = iris[1:4], b = iris[1:4]), k = 3)
#> Warning: input has no row names; using positional labels
#> Warning: input has no row names; using positional labels
#> $a
#> <morie_cluster> k=3  n=150
#>   sizes (largest first): 62, 50, 38 
#>   assignments (first rows):
#>  1  2  3  4  5  6  7  8  9 10 
#>  2  2  2  2  2  2  2  2  2  2 
#>   ... 140 more
#> 
#> $b
#> <morie_cluster> k=3  n=150
#>   sizes (largest first): 62, 50, 38 
#>   assignments (first rows):
#>  1  2  3  4  5  6  7  8  9 10 
#>  2  2  2  2  2  2  2  2  2  2 
#>   ... 140 more
#>