Is there any good example codes of integrating R and Python? Thanks. Linda [[alternative HTML version deleted]]
You mean like rPython? Or rpy? Or rpy2? Googling R Python is a great place to start. Sarah On Sun, Mar 1, 2015 at 9:41 AM, linda.s <samrobertsmith at gmail.com> wrote:> Is there any good example codes of integrating R and Python? > Thanks. > Linda >-- Sarah Goslee http://www.functionaldiversity.org
I recommend rpy2. http://rpy.sourceforge.net/rpy2.html It provides direct access to a running R instance with full support for R functions including package loading. It has some minor issues with graphics drivers making it best for programmatic and not interactive use but it is excellent for munging data in python and then passing it off to R for calculations. Collin. On Sun, Mar 1, 2015 at 10:17 AM, Sarah Goslee <sarah.goslee at gmail.com> wrote:> You mean like rPython? Or rpy? Or rpy2? > > Googling R Python is a great place to start. > > Sarah > > On Sun, Mar 1, 2015 at 9:41 AM, linda.s <samrobertsmith at gmail.com> wrote: > > Is there any good example codes of integrating R and Python? > > Thanks. > > Linda > > > -- > Sarah Goslee > http://www.functionaldiversity.org > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
depending on what you want. if you'd like to run r within python, there are 2 solutions as far as i've known, either by rpys or by pyper. here is a brief comparison i did before https://statcompute.wordpress.com/2012/12/10/a-brief-comparison-between-rpy2-and-pyper/ On Sun, Mar 1, 2015 at 8:41 AM, linda.s <samrobertsmith at gmail.com> wrote:> Is there any good example codes of integrating R and Python? > Thanks. > Linda > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- =============================WenSui Liu Credit Risk Manager, 53 Bancorp wensui.liu at 53.com 513-295-4370 ============================= [[alternative HTML version deleted]]