emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Best way of plotting duration (hms) data with R?
Date: Fri, 08 Mar 2013 10:12:34 +0100	[thread overview]
Message-ID: <87ip52b6gt.fsf@slate.zedat.fu-berlin.de> (raw)

Hi,

I have some data representing durations in an Org file:

| *Run* | *reference* | *test30*    | *test31*    | *test32*    |
|-------+-------------+-------------+-------------+-------------+
| Dur 2 | 00h 00' 32" | 00h 00' 44" | 00h 00' 39" | 00h 01' 05" |
| Dur 3 | 00h 00' 31" | 00h 00' 41" | 00h 00' 45" | 00h 01' 13" |
| Dur 4 | 00h 05' 46" | 00h 21' 54" | 00h 40' 10" | 00h 55' 02" |
| Dur 5 | 00h 03' 51" | 00h 13' 37" | 00h 23' 07" | 00h 28' 54" |
| Dur 7 | 00h 06' 49" | 00h 28' 48" | 00h 35' 23" | 01h 03' 17" |
| Dur 8 | 00h 06' 47" | 00h 22' 54" | 00h 47' 42" | 01h 02' 08" |

I would like to plot these using R and I'm not sure what approach to
take.

One way would be to do some Org/Calc magic to convert all the data to,
say seconds, and the pass the data to R.  My problem with this is that I
can't work out how to convert from HMS in Calc, let alone how this would
look in Org.

The other way would be to pass the data directly to R.  However, dealing
with durations in R has always seemed very clumsy to me, everything
being much more geared towards date-times.

I'd be grateful for any pointers on this.

Cheers

Loris

-- 
no sig is good sig

             reply	other threads:[~2013-03-08  9:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-08  9:12 Loris Bennett [this message]
2013-03-09  4:36 ` Best way of plotting duration (hms) data with R? John Hendy

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=87ip52b6gt.fsf@slate.zedat.fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --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).