Re: [R] Replace a list of values in data frame

2008-03-03 Thread Martin Elff
On Friday 29 February 2008 (14:50:53), Silvia Lipski wrote: > Dear R-users, > > I am sorry if I ask for something that has been asked > before, however, I still could not solve my little > problem by consulting the previous thread on this > topic: > > I would like to replace several values in a dat

Re: [R] Replace a list of values in data frame

2008-02-29 Thread Gabor Grothendieck
See ?recode in the car package. On Fri, Feb 29, 2008 at 8:50 AM, Silvia Lipski <[EMAIL PROTECTED]> wrote: > Dear R-users, > > I am sorry if I ask for something that has been asked > before, however, I still could not solve my little > problem by consulting the previous thread on this > topic: > >

Re: [R] Replace a list of values in data frame

2008-02-29 Thread Henrique Dallazuanna
Try this: colorful$response <- factor(colorful$response) levels(colorful$response)[levels(colorful$response) %in% ToBeReplaced] <- Replacement On 29/02/2008, Silvia Lipski <[EMAIL PROTECTED]> wrote: > Dear R-users, > > I am sorry if I ask for something that has been asked > before, however, I s

[R] Replace a list of values in data frame

2008-02-29 Thread Silvia Lipski
Dear R-users, I am sorry if I ask for something that has been asked before, however, I still could not solve my little problem by consulting the previous thread on this topic: I would like to replace several values in a data frame, such as in: colorful subject response 1 meblack 2