Hi Jason,

Thanks for the clear example.

While we're talking about this particular problem, I thought I'd mention
that there's also a nice off-the-shelf solution in R:

#+tblname: daily-expenses
| Expense | Category |
|---------+----------|
|       2 | Food     |
|       1 | House    |
|      10 | Clothes  |
|       3 | Food     |
|       5 | House    |

#+begin_src R :var tab=daily-expenses :colnames yes
  attach(tab)
  aggregate(Expense ~ Category, FUN=sum)
#+end_src

#+results:
| Category | Expense |
|----------+---------|
| Clothes  |      10 |
| Food     |       5 |
| House    |       6 |

Dan

Jason Dunsmore <emacs-orgm...@deathroller.dunsmor.com> writes:

> Hello,
>
> There was a thread on tracking finances with Org-mode back in May:
> http://thread.gmane.org/gmane.emacs.orgmode/24877
>
> I had a different solution to the problem which I documented on Worg:
> http://orgmode.org/worg/org-contrib/babel/uses.php#tracking-finances
>
> This is my first real use of Babel, so please let me know if there are
> ways I can improve.
>
> Regards,
> Jason

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to