Thanks Peter and David,
Peter, that is exactly what I was looking for. Sadly I have even used is.na()
in the past but forgot about it. David, thanks for the tip. I am
embarrassed that I exposed the fact that I use a lot of loops.
findInterval() seems very handy.
Wade
On Wed, Dec 8, 2010 at 4:
On Dec 8, 2010, at 3:10 PM, Wade Wall wrote:
Hi all,
How can one evaluate NAs in a numeric dataframe column? For
example, I have
a dataframe (demo) with a column of numbers and several NAs. If I
write
demo.df >= 10, numerals will return TRUE or FALSE, but if the value is
"NA", "NA" is re
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Wade Wall
> Sent: Wednesday, December 08, 2010 12:11 PM
> To: r-h...@stat.math.ethz.ch
> Subject: [R] evaluating NAs in a dataframe
>
> Hi all,
>
> How can one evaluate NAs in a
Hi!
> How can one evaluate NAs in a numeric dataframe column? For example, I have
> a dataframe (demo) with a column of numbers and several NAs. If I write
> demo.df >= 10, numerals will return TRUE or FALSE, but if the value is
> "NA", "NA" is returned. But if I write demo.df == "NA", i
On 2010-12-08 12:10, Wade Wall wrote:
Hi all,
How can one evaluate NAs in a numeric dataframe column? For example, I have
a dataframe (demo) with a column of numbers and several NAs. If I write
demo.df>= 10, numerals will return TRUE or FALSE, but if the value is
"NA", "NA" is returned. But if
5 matches
Mail list logo