[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Non-contaminating emptyness indicator
From: |
Nir Krakauer |
Subject: |
Re: Non-contaminating emptyness indicator |
Date: |
Sat, 6 Jul 2013 13:06:50 -0400 |
http://stat.ethz.ch/R-manual/R-patched/library/base/html/NA.html in
the R documentation. Apparently "systems typically have many different
NaN values. One of these is used for the numeric missing value NA, and
is.nan is false for that value" (
http://stat.ethz.ch/R-manual/R-patched/library/base/html/is.finite.html
)
In this case the function call would be y <- mean(x, na.rm = TRUE)