[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [BABEL] How to pass vector to R as variable?
From: |
Rainer M Krug |
Subject: |
[O] [BABEL] How to pass vector to R as variable? |
Date: |
Thu, 09 Jan 2014 12:21:26 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I want to pass a vector to R, defined in org as a variable. At the
moment I am doing the following,
#+NAME: COLSTOEVAL
| NPPyCcc |
| test |
#+PROPERTY: var COLs_TO_EVAL=COLSTOEVAL
#+begin_src R :exports both :results output
COLS_TO_EVAL[,1]
class(COLS_TO_EVAL[1,])
#+end_src
#+RESULTS:
: [1] "NPPyCcc, test"
: [1] "character"
which works, but I assume there is a way of defining COLS_TO_EVAL as a
vector?
If not, is there an easier way of doing it then I do?
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSzoY2AAoJENvXNx4PUvmCqfgH/j2Bu/b/s//igUEkuNMmehuh
ie+vQAo230PUnsz2QGtJ4Pl2iP4ZhKTBvbpujEqk58fUbhKFyXQ98UxaGAvChevE
Sc+jnLktWlgTgS9f+zr1jarJDVtgChEy1AM7n0CPKQ90G0a//d+oC2TWPEAL2xxq
HAHDY5DeyhOlHPV39CHlGHmMy5n1tSKsccoVfLq7rIqwg0fI1KfYyonQDJU1BxPL
sep++c7yyTTj31NcKUK9jg6TafaDfsi1FYBGe2z6JngeJvS/fqVLN29orIJOspiK
nJD896pTDMerfl/VJk0KHTykYA1nNm7+Ozrvp+Mk/9Xqa1LhG4ODPWeG1AQ1R48=
=J8PT
-----END PGP SIGNATURE-----
- [O] [BABEL] How to pass vector to R as variable?,
Rainer M Krug <=