popelem: popelem

Description Usage Arguments Examples

View source: R/popelem.R

Description

The function identifies in a matrix y the profiles in prof. For each row of the matrix y, the function returns the location of the corresponding profile in the object prof.

Usage

1
2
3
popelem(prof, ...)
## S3 method for class 'wprof'
popelem(prof, y, ...)

Arguments

prof

an object of S3 class wprof.

y

a matrix or data.frame representing a set of observations with variables (the same contained in prof) by columns.

...

any of above.

Examples

1
2
3
4
5
6
7
8
vl <- c(2, 3, 2)
prf <- var2prof(varlen = vl)
pop <- matrix(c(2, 1, 1, 1, 2, 1, 2, 3, 1), 3, 3)
rownames(pop) <- LETTERS[1:3]

v <- popelem(prof = prf, y = pop)
v
prf$profiles[v,]

parsec documentation built on May 2, 2019, 6:08 p.m.