Learn R Programming

mclust (version 1.1-7)

partuniq: Classifies Data According to Unique Observations

Description

Gives a one-to-one mapping from unique observations to rows of a data matrix.

Usage

partuniq(x, sep="001")

Arguments

x
Matrix of observations.
sep
Separation string.

Value

  • A vector of length nrow(x) with integer entries. An observation k is assigned an integer i whenever observation i is the first row of x that is identical to observation k (note that i <= k<="" code="">).

Examples

Run this code
data(iris)
mhtree(iris[,1:4], partition = partuniq(iris[,1:4]))

Run the code above in your browser using DataLab