obsprof: Remove unobserved profiles

Description Usage Arguments Examples

View source: R/obsprof.R

Description

The function removes from a prof the unobserved profiles (frequencies equal to zero) and it returns an object of S3 class wprof composed by the remaining profiles and their respective frequencies.

Usage

1
2
3
obsprof(prof)
## S3 method for class 'wprof'
obsprof(prof)

Arguments

prof

object of S3 class wprof.

Examples

1
2
3
4
prf <- var2prof(varlen = c(3, 3, 3))
prf$freq <- sample(c(0, 1), 3*3*3, replace = TRUE)
prf <- obsprof(prf)
plot(prf, shape = "equispaced")

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