[R] Odp: Conflating categories
petr.pikal at precheza.cz
Fri Dec 14 14:54:06 CET 2007
r-help-bounces at r-project.org napsal dne 14.12.2007 13:39:02:
> I think this is a pretty basic question. I still couldn#t find the
> it, though.
> I have some data loaded into R, which looks like this:
> > data()
> 38358 Advice Article
> 38359 Advice Article
> 38360 GeneralInfo List
> 38361 GeneralInfo Article
> 38362 Purchase Paragraphs
> 38363 Purchase List
> 38364 Purchase Paragraphs
If it is factor you can change its levels
 A01 A01 A01 A02 A02 A03 A03 A04
Levels: A01 A02 A03 A04
 "A01" "A02" "A03" "A04"
 one one one one one A03 A03 A04
Levels: one A03 A04
> I now would like to edit the data in such a way that every "Advice" is
> changed into "GeneralInfo".
> Is there some easy way how I can do this?
> Thanks a lot!
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help