gizgok
gizgok

Reputation: 7649

How to organize information in org mode such that it gives table as output?

I'm capturing results of my project in org-mode in this manner.

* Dataset

** Algorithm1
*** Metric1=value
*** Metric2=value

** Algorithm2
*** Metric1=value
.....

I would like to have this data in form of table where first row corresponds to metrics and first column corresponds to algorithms and other cells with values for metric. Can this be done in emacs/org-mode and how?

Upvotes: 5

Views: 740

Answers (2)

Mash
Mash

Reputation: 107

I am personally looking into this myself, and found this...

Since column view is just an overlay over a buffer, it cannot be exported or printed directly. If you want to capture a column view, use a columnview dynamic block (see Dynamic blocks). http://orgmode.org/manual/Capturing-column-view.html

Upvotes: 1

I'm not sure this is exactly what you want, but you could use properties and columns.

If you format you data like this,

#+COLUMNS: %25ITEM %7Metric1 %7Metric2

* Dataset

** Algorithm 1
   :PROPERTIES:
   :Metric1:  value 1
   :Metric2:  value 2
   :END:

** Algorithm 2
   :PROPERTIES:
   :Metric1:  value 1
   :Metric2:  value 2
   :END:

you can press C-cC-c in the first line to refresh the columns settings, then C-cC-xC-c to display your data in column view (use e to edit a field and q to quit and return to the standard view):

ITEM           | Metric1 | Metric2 |
#+COLUMNS: %25ITEM %7Metric1 %7Metric2

* Dataset      |         |         | ...
** Algorithm 1 | value 1 | value 2 | ...
** Algorithm 2 | value 1 | value 2 | ...

Upvotes: 3

Related Questions