0

Is there any way to add the grand total row at the last as I need to know how I can get total Invoiced for all months

Note- This dataset is a data.frame and where Months are just vector names.

      |Invoiced_With_Writeoff|Invoiced_Without_Writeoff|Total_Invoiced
July  |         2040         |          17739          |    19779
Aug   |          371         |           2329          |     2700
Sep   |          456         |            123          |      579
Oct   |          123         |            125          |      248
Nov   |          456         |            456          |      912
3
  • This is more a programming question, StackOverflow probably has this answered.
    – Firebug
    Feb 18, 2018 at 17:08
  • colsums should help in this
    – user817995
    Feb 19, 2018 at 5:03
  • colSums is the answer actually, I just don't think this question belong in SuperUser
    – Firebug
    Feb 19, 2018 at 12:54

0

You must log in to answer this question.

Browse other questions tagged .