The first call is an issue with you Python code. '.' is a special character in Python.
http://rpy.sourceforge.net/rpy2/doc/html/robjects.html#functions (same in 2.10-dev, with extra gizmos http://rpy.sourceforge.net/rpy2/doc-dev/html/robjects.html#functions L. Gary Strangman wrote: > Hi again, > > What is the proper syntax to set parameters like na.action in R's lm() > function? For example, if I create a dataframe with NAs and want them to > be dealt with via R's na.exclude, how do I formulate the call? Things > like the following fail: > >>>> from rpy2.robjects import * >>>> f = r.formula('y ~ x') >>>> rpy2.robjects.r.lm(f,myframe, na.action=NULL) # fails; "keyword can't be >>>> an expression" >>>> rpy2.robjects.r.lm(f,myframe, na_action=NULL) # fails; "extra arguments >>>> na_action are just disregarded" >>>> > > ... and I haven't figured out any alternative syntax options. Is there > some other parameter-name munging to use? > > -best > Gary > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list