Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

emacs

org-mode

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?

like image 221
gizgok Avatar asked Oct 07 '22 04:10

gizgok


1 Answers

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 | ...
like image 194
François Févotte Avatar answered Oct 10 '22 02:10

François Févotte