Learn R Programming

parsec (version 1.1.1)

rmProfiles: 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:
  • numericwhose components refer to the positions of profiles iny;
logical of the same length as the number of profil

Value

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

item

...

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