[RkWard-devel] length() and na.rm
Stefan Rödiger
stefan_roediger at gmx.de
Thu Aug 17 09:19:49 UTC 2006
Am Mittwoch, 16. August 2006 16:59 schrieb Thomas Friedrichsmeier:
> I think the problem came from this line:
>
> if (rk.temp.options$dolength) try (rk.temp.results[[i]]$length <- length
> (eval (which(!is.na(var)))))
>
> it would have to be
>
> if (rk.temp.options$dolength) try (rk.temp.results[[i]]$length <- length
> (which(!is.na(eval (var)))))
>
> The "eval (...)" is only there to re-substitute var with the actual
> variable.
I checked it and there is still a problem with the length. Though the nas are
given correct the length is wrong. The counted number is 1000 instead of 100
for 900 na.
More information about the Rkward-devel
mailing list