Learn R Programming

SK4FGA (version 0.1.1)

partition.multi: Create Partitions of a multivariate array of objects.

Description

Partitions the array of assumed glass fragment chemical compositions and features into statistically significant groups.

Usage

partition.multi(data, alpha = 0.05, .debug = FALSE)

Value

A list of groupings and the tree formed.

Arguments

data

A list of data.frames or matrices corresponding to individual observations of glass fragment features.

alpha

Significance parameter "[0,1]". Higher values are more likely to partition the array further.

.debug

Runs debugging.

Examples

Run this code

test.data = prepare_data(glass, 1)[1:3]
part = partition.multi(test.data)
plot(part)

set.seed(123)
test.data.random = prepare_data(glass, 1)
test.data.random = test.data.random[sample(1:length(test.data.random), 5)]
part = partition.multi(test.data.random)
part$groups


Run the code above in your browser using DataLab