emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Jason Dunsmore <emacs-orgmode@deathroller.dunsmor.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Tracking finances with Babel
Date: Sun, 01 Aug 2010 23:12:57 -0400	[thread overview]
Message-ID: <87r5ih1zd2.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <87lj8prcvg.fsf@riotblast.dunsmor.com> (Jason Dunsmore's message of "Sun, 01 Aug 2010 21:01:55 -0500")

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-orgmode@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

      reply	other threads:[~2010-08-02  3:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02  2:01 Tracking finances with Babel Jason Dunsmore
2010-08-02  3:12 ` Dan Davison [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5ih1zd2.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@deathroller.dunsmor.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).