If the column is factor: levels(DATA$x)[levels(DATA$x) == "Toyota2"] <- "Scion"
or character: DATA$x[DATA$x == "Toyota2"] <- "Scion" On 11/03/2008, Suran, Luciana @ Torto Wheaton Research <[EMAIL PROTECTED]> wrote: > Sorry, another newbie question :-( > > > > > > I loaded a data set with 10 rows and 30 columns. The first column is > characters for names of car manufacturers: > > > > Jeep > > Nissan > > Toyota1 > > Toyota2 > > Etc. > > > > How can I replace "Toyota2" with "Scion"? > > > > Thanks again > > > > > > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.