Extract clusters from cfluctile

cfcl(x, y = NULL, ll)

Arguments

x

vector or dataframe.

y

if x is a vector, y needs to be specified.

ll

The list with the names of the levels which are combined.

Value

A 2-column dataframe with the cluster factors.

See also

Examples

a <- arsim(2000, c(12,17),5, noise=0.2,shuffle = FALSE) cfa <- cfluctile(a)
da <- as.data.frame(a) clusters <- cfcl( da, ll = cfa) dev.new()
#> dev.new(): using pdf(file="Rplots67.pdf")
fluctile(xtabs(da$Freq~clusters[,1] + clusters[,2]))
#> viewport[base]
table(combcl(clusters))
#> #> 1 2 3 4 5 0 #> 8 2 12 9 10 163