[R] NA, where no NA should (could!) be!

Oliver Bandel oliver at first.in-berlin.de
Sun Dec 21 00:15:53 CET 2008


Oliver Bandel <oliver <at> first.in-berlin.de> writes:

[...]
> 
> P.S.: I will try to attach my zip-file now... it contains
>       the complete code and a changed weblog (changed IP-addresses).
>       I hope the list accepts it.
[...]

As assumed, this did not work.

But I found, where the problem might be located...


With a smalle testfile I tried this after
running my script:

===============================================
> levels(selected$host)
[1] "22.99.44.101"   "266.249.71.143" "5.66.61.230"    "66.29.1.13"    
[5] "7.6.1.20"       "7.6.14.240"    
> 
> 
> levels(selected$host) <- factor(selected$host)
> 
> levels(selected$host)
[1] "7.6.1.20"    "7.6.14.240"  "5.66.61.230"
> 
> 
===============================================

So, somehow there are unused levels inside.
Using drop=TRUE in split() did not helped.
So I have somewhere later to fix it.

But when I do it before tapply, there will be an error-message...

Ciao,
   Oliver



More information about the R-help mailing list