Skip to content
Back to formatted view

Raw Message

Message-ID: <loom.20081220T231302-887@post.gmane.org>
Date: 2008-12-20T23:15:53Z
From: oliver
Subject: NA, where no NA should (could!) be!

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