Re: [R] Rekeying value denoting NA

2011-11-08 Thread David Winsemius
On Nov 8, 2011, at 8:57 AM, Jean V Adams wrote: SML wrote on 11/07/2011 09:10:30 PM: I'm trying to rekey values which denote there is no values, i.e., '-999' in a dataset which contains both '-999' and NA entries. When I try the following command I get the following error: data.frame[data.f

Re: [R] Rekeying value denoting NA

2011-11-08 Thread Jean V Adams
SML wrote on 11/07/2011 09:10:30 PM: > > I'm trying to rekey values which denote there is no values, i.e., > '-999' in a dataset which contains both '-999' and NA entries. > When I try the following command I get the following error: > > > data.frame[data.frame$MAR <= -9,"MAR"] <- NA > > "mi

[R] Rekeying value denoting NA

2011-11-07 Thread SML
I'm trying to rekey values which denote there is no values, i.e., '-999' in a dataset which contains both '-999' and NA entries. When I try the following command I get the following error: > data.frame[data.frame$MAR <= -9,"MAR"] <- NA "missing values are not allowed in subscripted assignment