[Rpy] question about errors for a web tool using rpy2

2014-09-25 Thread Qunawei Zhang
Hello: I developed a web tool using CGI, python and apache. The CGI file was written by python, and it calls R functions through rpy2. The web tool works well on my personal computer. Then we are trying to set it up on the server (System: CentOS release 5.7). Since the version of python and R were

Re: [Rpy] question, problem with arguments in r function

2011-12-01 Thread Thomas Kluyver
On 1 December 2011 15:59, Marko Limbek wrote: > resmca = r.MCA(datapm, ncp=3, quali.sup=r.c(4, 5, 6)) A Python keyword argument can't contain a dot. AFAIK, rpy2 automatically translates those cases to use underscores, so try quali_sup=... Thomas

Re: [Rpy] question, problem with arguments in r function

2011-12-01 Thread David Haynes
I am running windows 7, python 2.5, r 2.12 and I found the proper rpy2 install package rpy2-2.0.3.win32-py2.5.exethere is also an msi package. I successfully install the library and I can import the library "i

[Rpy] question, problem with arguments in r function

2011-12-01 Thread Marko Limbek
Hello! I want to run MCA (Multiple Correspondence Analysis, package FactoMineR) WITH ARGUMENTS "quali.sup" to use supplementary variables and I get SyntaxError. I tried different orders. What should I do? Marko resmca = r.MCA(datapm, ncp=3, r.quali_sup=r.c(4, 5, 6)) resmca = r.MCA(datapm, ncp=3

Re: [Rpy] question

2007-10-08 Thread Peter
zakaria ali wrote: > Dear Mrs > > how I can program in Python standard deviation?please help me because I > am a new programmer. Do you know the python programming language? Do you know the R programming language? This mailing list is about rpy. To use rpy you should already know the both pyt

Re: [Rpy] question

2007-10-08 Thread Gregory Warnes
To use Rpy to compute the standard deviation to something like: >>> import rpy RHOME= /Library/Frameworks/R.framework/Resources RVERSION= 2.5.1 RVER= 2051 RUSER= /Users/warnes Loading Rpy version 2051 .. Done. Creating the R object 'r' .. Done >>> x = [1,2,3,4,5] >>> rpy.r.sd(x) 1.58113883008

[Rpy] question

2007-10-08 Thread zakaria ali
Dear Mrs how I can program in Python standard deviation?please help me because I am a new programmer. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log ev