Learn R Programming

parsec (version 1.2.7)

rmProfiles: Removing profiles

Description

Function to remove profiles from an object of class wprof.

Usage

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

Value

The function returns an wprof object equal to y but without the profiles in 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.

Examples

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

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

plot(prof)

Run the code above in your browser using DataLab