[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] R contingency table axes labels in org
From: |
Jarmo Hurri |
Subject: |
[O] R contingency table axes labels in org |
Date: |
Mon, 04 Nov 2013 18:05:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Greetings again.
I need to represent a contingency table generated by R in an org file. R
output shows the labes of the vertical and the horizontal axes, but
these are pruned from the output in org-mode. Is there a nice way to
reintroduce the axes labels?
# ----------------------------------------------------------------------
* interesting data
#+BEGIN_SRC R :exports results :rownames yes :colnames yes
org.files <- c (1, 0, 2, 2, 2, 2, 1)
happiness <- c (1, 0, 2, 2, 2, 1, 2)
data <- data.frame (org.files, happiness)
table (data)
#+END_SRC
#+RESULTS:
| | 0 | 1 | 2 |
|---+---+---+---|
| 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 2 | 0 | 1 | 3 |
# ----------------------------------------------------------------------
All the best,
Jarmo
- [O] R contingency table axes labels in org,
Jarmo Hurri <=