Re: [R] Indexing and partially replacing 99, 999 in data frames

2007-11-24 Thread jim holtman
for you last case with 'frog': sum(complete.cases(frog)) On Nov 24, 2007 11:52 AM, Mark Hempelmann <[EMAIL PROTECTED]> wrote: > > Dear WizaRds, > >unfortunately, I have been unable to replace the '99' and '999' > entries in > > library(UsingR) > attach(babies) > > as definitions for mis

[R] Indexing and partially replacing 99, 999 in data frames

2007-11-24 Thread Mark Hempelmann
Dear WizaRds, unfortunately, I have been unable to replace the '99' and '999' entries in library(UsingR) attach(babies) as definitions for missing values NA, because sometimes the 99 entry is indeed a correct value. Usually, or so I thought, NAs can easily replace a, say, 999 entry via