[R] Replacing values

Ivailo Stoyanov istoyanov at ecolab.bas.bg
Wed Dec 20 13:31:04 CET 2006


On Mon, 2006-12-18 at 10:58 -0800, downunder wrote:
> Hi all,
> 
> I have to recode some values in a dataset. for example changing all zeros to
> "." or 999 would be also ok. does anybody know how to do this? thanks in
> advance. lars

Lars,

I would perform all such "editing" tasks in a spreadsheet, where I
easily could run a Find & Replace function over the dataset. Then,
export and read.table("the_exported_file.txt") will get the data into R,
where you could continue at wish.

HTH,

Ivailo



More information about the R-help mailing list