<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div><br></div><div><div><div>Il giorno 09/lug/2011, alle ore 18.02, Jeffrey Ryan ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite">If you can provide a reproducible example, i.e. a *small* subset of your data.frame that illustrates the error - as it would allow those on the list to attempt to replicate.  <div><br></div><div>"some info" can't be sourced in.  Try 'dput' and paste the results.<div>
<br></div><div>Jeff<br><br><div class="gmail_quote">On Sat, Jul 9, 2011 at 10:31 AM, Luca Meyer <span dir="ltr"><<a href="mailto:lucam1968@gmail.com">lucam1968@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I had a piece of code regularly working on R 2.12 now giving error on the newly installed R 2.13:<br>
<br>
d5 <- aggregate(d4[,c("ore")],list(d4$progetto),sum)<br>
<br>
Errore in units == units[1L] : confronto tra questi tipi non implementato - that's basically saying "comparison between these types has not been implemented"<br>
<br>
How can I solve this issue? Please find attached some info about data frame d4<br>
<br>
> class(d4)<br>
[1] "data.frame"<br>
> names(d4)<br>
[1] "data"      "anno"      "mese"      "settimana" "progetto"  "ore"<br>
> class(d4$ore)<br>
[1] "difftime"<br>
> class(d4$progetto)<br>
[1] "factor"<br>
<br>
Also, this is the R version I have installed:<br>
<br>
R version 2.13.0 (2011-04-13)<br>
Copyright (C) 2011 The R Foundation for Statistical Computing<br>
ISBN 3-900051-07-0<br>
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)<br>
<br>
Thanks,<br>
Luca<br>
<br>
_______________________________________________<br>
R-SIG-Mac mailing list<br>
<a href="mailto:R-SIG-Mac@r-project.org">R-SIG-Mac@r-project.org</a><br>
<a href="https://stat.ethz.ch/mailman/listinfo/r-sig-mac" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-mac</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jeffrey Ryan<br><a href="mailto:jeffrey.ryan@lemnica.com" target="_blank">jeffrey.ryan@lemnica.com</a><br><br><a href="http://www.lemnica.com/" target="_blank">www.lemnica.com</a><br>
<div><a href="http://www.esotericR.com/" target="_blank">www.esotericR.com</a></div><br>
</div></div>
</blockquote></div><br></div></body></html>