all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [babel] R - variable names in summary
@ 2009-12-08 23:50 Graham Smith
  2009-12-09  4:38 ` Austin Frank
  2009-12-09 16:38 ` Dan Davison
  0 siblings, 2 replies; 14+ messages in thread
From: Graham Smith @ 2009-12-08 23:50 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1526 bytes --]

Dan

I have started a new thread so it has a propel babel string. I have
also created a small file for testing.

The colnames t works as expected, but how do I then see the variable
names when using the summary command, and str doesn't work at all
(source block produced no output) . They appear OK in the R buffer.

Orgmode+babel output below

Graham

#+srcname:babeltest
#+begin_src R :colnames t
babeltest<-read.csv("/home/graham/Dropbox/myotis/Learn/learn/babeltest.csv",header=TRUE)
#+end_src

#+resname: babeltest
| "ID" | "var1" | "var2" | "var3" |
|------+--------+--------+--------|
|    1 |     34 |      1 |    400 |
|    2 |     56 |      4 |    499 |
|    3 |     78 |      3 |    500 |
|    4 |     34 |      5 |    600 |
|    5 |     56 |      6 |    500 |
|    6 |     23 |      7 |    300 |
|    7 |     45 |      5 |    200 |
|    8 |     23 |      6 |    340 |
|    9 |     89 |      7 |    400 |
|   10 |     46 |      4 |    450 |



#+begin_src R :session babeltest
summary(babeltest)
#+end_src

#+resname:
| "Min.   : 1.00" | "Min.   :23.0" | "Min.   :1.0" | "Min.   :200.0" |
| "1st Qu.: 3.25" | "1st Qu.:34.0" | "1st Qu.:4.0" | "1st Qu.:355.0" |
| "Median : 5.50" | "Median :45.5" | "Median :5.0" | "Median :425.0" |
| "Mean   : 5.50" | "Mean   :48.4" | "Mean   :4.8" | "Mean   :418.9" |
| "3rd Qu.: 7.75" | "3rd Qu.:56.0" | "3rd Qu.:6.0" | "3rd Qu.:499.8" |
| "Max.   :10.00" | "Max.   :89.0" | "Max.   :7.0" | "Max.   :600.0" |

#+begin_src R :session babeltest
str(babeltest)
#+end_src

#+resname:

[-- Attachment #2: babeltest.csv --]
[-- Type: text/csv, Size: 129 bytes --]

ID,var1,var2,var3
1,34,1,400
2,56,4,499
3,78,3,500
4,34,5,600
5,56,6,500
6,23,7,300
7,45,5,200
8,23,6,340
9,89,7,400
10,46,4,450

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-12-09 22:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-08 23:50 [babel] R - variable names in summary Graham Smith
2009-12-09  4:38 ` Austin Frank
2009-12-09 16:46   ` Graham Smith
2009-12-09 16:38 ` Dan Davison
2009-12-09 17:05   ` Graham Smith
2009-12-09 19:14     ` Dan Davison
2009-12-09 20:33       ` Graham Smith
2009-12-09 20:44         ` Dan Davison
2009-12-09 21:00           ` Graham Smith
2009-12-09 20:51         ` Thomas S. Dye
2009-12-09 21:06           ` Graham Smith
2009-12-09 20:49       ` Austin Frank
2009-12-09 21:12         ` Graham Smith
2009-12-09 22:28         ` Dan Davison

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.