rmProfiles: Remove profiles

Description Usage Arguments Value Examples

View source: R/rmProfiles.R

Description

The function allows to remove profiles from an object of class wprof.

Usage

1
2
3
rmProfiles(y, ...)
## S3 method for class 'wprof'
rmProfiles(y, v, ...)

Arguments

y

object of class wprof.

v

a vector that points to the profiles to be removed. The vector can be of type:

  • numeric which values refers to the positions of the profiles in y;

  • logical as long as the number of profiles in y;

  • character to refer to the profiles names in y.

...

any of above.

Value

The function returns an wprof object equal to y but without the profiles in v.

Examples

1
2
3
4
5
6
7
vl <- c(3, 3, 3)
prof <- var2prof(varlen = vl)
rownames(prof$profiles)

prof <- rmProfiles(prof, c("123", "321"))

plot(prof)

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