[R] Odp: Aggregate Function
Petr PIKAL
petr.pikal at precheza.cz
Thu Apr 23 13:17:42 CEST 2009
Try to set scipen in options.
?options
e.g.
options(scipen=12)
Regards
Petr
r-help-bounces at r-project.org napsal dne 23.04.2009 12:30:11:
> Hi all,
>
> I am currently carrying out the following aggregate function:
>
> D2 <- with(D1,aggregate(COST, list(FRUIT, VEG),FUN="sum"))
>
> The function is working fine but I am getting "sum" output in the
> following format:
>
> 1.750623e+09
>
> How can I re-format the output to look like 1750622640.7?
>
> Many thanks in advance,
> Bronagh
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list