Revert "DONE take default values for header args from properties"
[rgr-org-mode.git] / library-of-babel.org
blob2de8bad4dc4ab96c0b62840992eccfafbcd7731e
1 #+title: The Library of Babel --- off-the-shelf functions for data analysis and plotting using org-babel
2 #+SEQ_TODO: TODO PROPOSED | DONE DEFERRED REJECTED
3 #+OPTIONS: H:3 num:nil toc:t
4 #+STARTUP: odd hideblocks
6 [[http://downlode.org/Etext/library_of_babel.html][Full text of the Borges short story]]
8 * Plotting code
9   Plot column 2 (y axis) against column 1 (x axis). Columns 3 and beyond, if present, are ignored.
11 #+srcname: R-plot(data=R-plot-example-data)
12 #+begin_src R :session *R*
13 plot(data)
14 #+end_src
16 #+tblname: R-plot-example-data
17 | 1 |  2 |
18 | 2 |  4 |
19 | 3 |  9 |
20 | 4 | 16 |
21 | 5 | 25 |
23 #+lob: R-plot(data=R-plot-example-data)
25 #+resname: R-plot(data=R-plot-example-data)
26 : nil
28 * Etc
29 #+srcname: python-identity(a=1)
30 #+begin_src python
32 #+end_src
34 #+srcname: python-add(a=1, b=2)
35 #+begin_src python
36 a + b
37 #+end_src