Skip to content

R code not working under R version 2.13 for Mac

6 messages · Ben Bolker, Jeff Ryan, Berend Hasselman +1 more

#
On 11-07-09 01:12 PM, Luca Meyer wrote:
Before we jump into this, it would also be nice if you could sendthe
results of sessionInfo() from both a (minimal) working 2.12.x session
and a (minimal) non-working 2.13.x session -- I suspect a change in
packages, or that you haven't reinstalled some packages, or something
like that.
#
Hello,

I had a piece of code regularly working on R 2.12 now giving error on the newly installed R 2.13:

d5 <- aggregate(d4[,c("ore")],list(d4$progetto),sum)

Errore in units == units[1L] : confronto tra questi tipi non implementato - that's basically saying "comparison between these types has not been implemented"

How can I solve this issue? Please find attached some info about data frame d4
[1] "data.frame"
[1] "data"      "anno"      "mese"      "settimana" "progetto"  "ore"
[1] "difftime"
[1] "factor"

Also, this is the R version I have installed:

R version 2.13.0 (2011-04-13)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

Thanks,
Luca
#
Thanks Jeff,

I have extracted the first 50 lines of the d4 data.frame and put them into the attached d4a.RData file. In case the list handler does not allow attachments I have uploaded a copy of the file onto my web site and it can be downloaded from: http://www.lucameyer.com/d4a.RData

Please notice that what I am trying to do is to aggregate over d4a$progetto and get a sum of d4a$ore. The error I get states:

Error in units == units[1L] : comparison between these types has not been implemented

Can you or anyone on the list spot what the matter could be for me? 

Thanks,
Luca



Il giorno 09/lug/2011, alle ore 18.02, Jeffrey Ryan ha scritto:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20110709/b2fb4cc9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d4a.RData
Type: application/octet-stream
Size: 1763 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20110709/b2fb4cc9/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20110709/b2fb4cc9/attachment-0001.html>
#
On 09-07-2011, at 19:12, Luca Meyer wrote:

            
By trial and error 

aggregate(as.numeric(d4a$ore),list(d4a$progetto),sum)


Berend
2 days later
#
Thank you!
Luca

Il giorno 09/lug/2011, alle ore 20.13, Berend Hasselman ha scritto: