----------
Destina il tuo 5 per mille dell'IRPEF (sul mod. 730 o mod. UNICO o mod. CUD)
firmando e indicando il nostro codice fiscale 03254210150 nel riquadro
"finanziamento agli enti della ricerca scientifica e dell'universita'" per
aiutare a mantenere indipendente la ricerca scientifica dell'Istituto Mario
Negri, una fondazione privata senza scopo di lucro che da 50 anni opera
nell'interesse degli ammalati.
Per maggiori informazioni:
Istituto Mario Negri, Via La Masa 19 - 20156 Milano
Tel: +39 02 390141 - Fax: +39 02 3546277 +39 02 39001918
Internet: www.marionegri.it, mne...@marionegri.it
--- Begin Message ---
In data martedì 26 aprile 2011 15:48:38, 亀田馬志 ha scritto:
Which version of rpy2 are you using?
> robjects.r('library(RSQLite)')
> drv = 'dbDriver("SQLite")'
You could also (with 2.1.x or newer) do
from rpy2.robjects.packages import importr
rsqlite = importr("RSQLite")
drv = rsqlite.dbDriver("SQLite")
(assuming that "dbDriver" is provided by the library itself and not another
package, if not you have to "importr" the relevant package)
> Question here. I want to give a column data of the data_table to an R
> function, such as t.test. But I don't know how.
You use rx and rx2 accessors (on 2.1.x or newer). The behavior you want is
done with the rx2 accessor:
mycol = mydataf.rx2("colname")
> robjects.r(some_r_function('%s$specified_column_name" % data_table)) #
> This is no good. Doesn't work properly
You should use "importr" and call the functions directly from Python. See the
rpy2 documentation for more details.
Hope this helps.
--
Luca Beltrame, Ph.D. - Translational Genomics Unit
Oncology Department, Mario Negri Institute
signature.asc
Description: This is a digitally signed message part.
--- End Message ---
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list