[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Combine tables which are results from calculations?
From: |
Rainer M Krug |
Subject: |
[O] Combine tables which are results from calculations? |
Date: |
Tue, 03 Nov 2015 14:18:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
Hi
Considering the following example:
--8<---------------cut here---------------start------------->8---
#+NAME t1
#+begin_src R :colnames yes
data.frame(a = 1:3)
#+end_src
#+RESULTS:
| a |
|---|
| 1 |
| 2 |
| 3 |
#+NAME t2
#+begin_src R :colnames yes
data.frame(b = 1:10)
#+end_src
#+RESULTS:
| b |
|----|
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
#+NAME t3
#+begin_src R :colnames yes
data.frame(c = 1:7)
#+end_src
#+RESULTS:
| c |
|---|
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
What I would like to have is:
| a | b | c |
|----|----|----|
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 3 | 3 | 3 |
| | 4 | 4 |
| | 5 | 5 |
| | 6 | 6 |
| | 7 | 7 |
| | 8 | |
| | 9 | |
| | 10 | |
--8<---------------cut here---------------end--------------->8---
How can I combine t1, t2 and t3 column wise?
Thanks,
Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: address@hidden
Skype: RMkrug
PGP: 0x0F52F982
signature.asc
Description: PGP signature
- [O] Combine tables which are results from calculations?,
Rainer M Krug <=