[R] Aggregate Function

Bronagh Grimes Bronagh.Grimes at distinct.ie
Thu Apr 23 12:30:11 CEST 2009


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




More information about the R-help mailing list