Re: [R] Run a Python code from R

2016-12-01 Thread Nelly Reduan
he Python script ? Thanks a lot for your time. Have a nice day Nell De : Robert Baer Envoy� : samedi 19 novembre 2016 16:05:13 � : David Winsemius; Nelly Reduan Cc : r-help@r-project.org Objet : Re: [R] Run a Python code from R >From https://www.r-blogger

Re: [R] Run a Python code from R

2016-11-19 Thread Robert Baer
From https://www.r-bloggers.com/rpithon-vs-rpython/ "Similar to rPython, the rPithon package (http://rpithon.r-forge.r-project.org) allows users to execute Python code from R and exchange the data between Python and R. However, the underlying mec

Re: [R] Run a Python code from R

2016-11-16 Thread David Winsemius
er.py", line 184, in default > >raise TypeError(repr(o) + " is not JSON serializable") > > TypeError: array([[ 0.36534654, 0.31962481, 0.44229946, ..., 0.11513079, > > 0.07156331, 0.00286971], > > [ 0.41534291, 0.41333479, 0.48118995, ...,

Re: [R] Run a Python code from R

2016-11-16 Thread Nelly Reduan
0.00286971], [ 0.41534291, 0.41333479, 0.48118995, ..., 0.19203674, 0.04192771, 0.03679473], [ 0.5188 Nell ________________ De : Wensui Liu Envoy� : mercredi 16 novembre 2016 16:00:03 � : Nelly Reduan Cc : r-help@r-project.org Objet : Re: [R

Re: [R] Run a Python code from R

2016-11-16 Thread Wensui Liu
take a look at rpython or rPithon package On Wed, Nov 16, 2016 at 4:53 PM, Nelly Reduan wrote: > Hello, > > > How can I run this Python code from R ? > > import nlmpy nlm = nlmpy.mpd(nRow=50, nCol=50, h=0.75) nlmpy.exportASCIIGrid("raster.asc", nlm) > > > Nlmpy is a Python package