rmProfiles: Removing profiles

View source: R/rmProfiles.R

rmProfilesR Documentation

Removing profiles

Description

Function to remove profiles from an object of class wprof.

Usage

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

Arguments

y

object of class wprof.

v

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

  • numeric whose components refer to the positions of profiles in y;

  • logical of the same length as the number of profiles in y;

  • character, referring to profile names in y.

...

any of the above.

Value

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

Examples

vl <- c(3, 3, 3)
prof <- var2prof(varlen = vl)
rownames(prof$profiles)

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

plot(prof)

parsec documentation built on Aug. 19, 2023, 5:07 p.m.