R-2.9.0/include/R_ext/Arith.h has:
int R_IsNA(double); /* True for R's NA only */
int R_IsNaN(double);/* True for special NaN, *not* for NA */
int R_finite(double); /* True if none of NA, NaN, +/-Inf */
#define ISNA(x)R_IsNA(x)
/* True for *both* NA and N
> ?agrep
>
Results in:
No documentation for 'agrep ' in specified packages and libraries:
you could try 'help.search("agrep ")'
There is white space after agrep, that ? doesn't ignore.
--please do not edit the information below--
Version:
platform = i486-pc-linux-gnu
arch = i486
os = lin
I've run into a scoping problem in R.
I'm calling a function that
* creates a formula
* calculates a weight vector
* calls lm with that formula and weights
This fails.
Here's a simplified reproduce example:
# f works, g doesn't, h is a workaround
rm(w)
data <- data.frame(y=runif(20), x=ru