powered by
Function to remove profiles from an object of class wprof.
wprof
rmProfiles(y, ...) # S3 method for wprof rmProfiles(y, v, ...)
The function returns an wprof object equal to y but without the profiles in v.
y
v
object of class wprof.
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;
numeric
logical of the same length as the number of profiles in y;
logical
character, referring to profile names in y.
character
any of the above.
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