emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: <tcburt@rochester.rr.com>
To: "darcamo@gmail.com" <darcamo@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Gather properties for use by babel source block?
Date: Wed, 3 Aug 2011 14:35:27 +0000	[thread overview]
Message-ID: <20110803143527.CD5TM.82842.root@hrndva-web16-z02> (raw)
In-Reply-To: <CAGjSdXqd-6zP31gTpdm2-LnD=8m6a70atnX3D+VdVgcz9yG00A@mail.gmail.com>

Hello Darlan ---

---- "darcamo@gmail.com" <darcamo@gmail.com> wrote: 
> I have not used it myself, but isn't org-collector exactly what you want [1].
> "org-collector collects headline properties into tables with optional
> pre-processing"

Indeed org-collector has allowed me to extract properties into a table, and even without much knowledge of lisp (for the conditions) the results were promising.

> Once you have a table, you can easily pass it to code blocks for further
> processing with org-babel.

While I have the table from org-collector I do not know how to "easily pass it to code blocks".  I have an (untested) idea that if #+tblname preceded the table from org-collector, then a babel source block could operate on it.  If this works then almost all is well and good, except for the small detail of getting the #+tblname automatically from the org-collector process. 

Thank you for the response,
Tim
> 
> [1] - http://orgmode.org/worg/org-contrib/org-collector.html
> 
> --
> Darlan
> 
> 2011/8/2 Tim Burt <tcburt@rochester.rr.com>:
> >
> > I want to gather data from properties into something that can be used by
> > a babel source block (e.g. plot the data).  Searches in the manual,
> > worg, and gmane have not yielded the method, but my best guess is that
> > I've missed it.  If so, this is simply a request for a pointer to the
> > documentation I should read.
> >
> > BACKGROUND: I'm trying to complete a workflow where I capture data over
> > time and periodically operate with it (e.g. put into a database and
> > plot).  The excellent documentation for orgmode has made certain parts
> > easy going, but the current obstacle is extracting properties that can
> > subsequently be operated on in babel source blocks.
> >  + [X] Capture data into properties using templates
> >  + [X] View tables of properties in org file
> >   * [X] use columnview dynamic block
> >   * [X] use org-collector
> >  + [ ] Gather properties for use by babel source block
> >  + [-] Operate on the gathered properties
> >   * [-] SQL or SQLite
> >     - [X] follow simple tutorials for proof of principle
> >     - [ ] populate database with gathered properties
> >   * [-] R
> >     - [X] follow simple tutorials
> >     - [ ] calculate statistics and populate database
> >     - [ ] plot from database
> >     - [ ] plot from table in org file
> >
> > Good evening,
> > Tim
> >
> >

  reply	other threads:[~2011-08-03 14:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-02 23:57 Gather properties for use by babel source block? Tim Burt
2011-08-03 14:00 ` darcamo
2011-08-03 14:35   ` tcburt [this message]
2011-08-03 15:53     ` suvayu ali
2012-05-07 15:52 ` Colin Hall
2012-05-07 14:16   ` Eric Schulte
2012-05-07 21:30     ` Colin Hall
2012-05-08 10:42   ` Tim Burt
2012-05-09 19:30     ` Colin Hall

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=20110803143527.CD5TM.82842.root@hrndva-web16-z02 \
    --to=tcburt@rochester.rr.com \
    --cc=darcamo@gmail.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).