[R] Incorrect Summarization after As.numeric

SHIVI BHATIA shivi.bhatia at safexpress.com
Mon Dec 28 10:12:03 CET 2015

Dear Team,


I am working on aggregate function in R & have used the below code:




initially a1$Final was factor hence I used a1$Final= as.numeric(a1$Final) to
convert this into numeric. After conversion it shows the output but the
summarization from the aggregate is incorrect. This I have reconciled with
the excel pivot. 


Could you please suggest where could be the issue?


Thanks, Shivi

Mb: 9891002021


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20151228/41f24cf2/attachment.pl>

More information about the R-help mailing list