Everything works fine on development server. However, the following
error was showing when I moved the project to the production server
running httpd and wsgi.
TemplateSyntaxError at / Caught LookupError while rendering: 'show'
not found Request Method: GET Request URL:http://10.14.5.18/
As a general note, if you want to do R-like manipulation of data in
Python, you should look into 'numpy'. It's very standard, and provides
an array type that works like R vectors, plus functions like 'log' and
'sum' that apply to all elements quickly. rpy2 also has some code to
make it easy to inte
Hi everyone,
Sorry for the double mail, I accidentaly pushed a button that send it off
before I was finished.
I'm trying to rebuild a R example in rpy2 given in this thread in
stackoverflow:
http://stackoverflow.com/questions/3541713/how-to-plot-two-histograms-together-in-r.
The example looks lik
Hi everyone,
I'm trying to rebuild a R example in rpy2 given in this thread in
stackoverflow:
http://stackoverflow.com/questions/3541713/how-to-plot-two-histograms-together-in-r.
The example looks like this:
set.seed(42)
p1 <- hist(rnorm(500,4)) # centered at 4
p2
I am a bit confused now I am using rinterface and not robjects so how do I
managed to do the same with the rinterface? If I try to multiply two
IntSexpVectors I just get a combination of vectors as in python rather than
an actual sum of the two as in R.
2012/2/23 Laurent Gautier
> On 2012-02-
Thank you Laurent for your quick reply.
The if k[i] == 0 in R is implement as being + p * (x == 0) which will add
p if k[i]==0 or zero if not. I was trying to came up with a closer
implementation but I cannot do sums or multiplications between Robjects is
that right?
2012/2/23 Laurent Gautier
Hello everyone'
I am trying to port an R function to estimate some parameters to the rpy2
but the performance in python is appaling. So I was wondering if there is a
best way of doing this. What I have at the moment is:
R code
finbinom <-function(pars,x)
{
p<-pars[1]
mu <- pars[2]
size <- pars[3]
On 2012-02-23 11:08, Niek de Klein wrote:
Hi everyone,
I have a matrix with multiple columns like this:
charge convexhull_xCoor id
3 3336.43 f_7936733956214261295
3 3339.73 f_7936733956214261295
3 3336.43 f_793673395621426
Hi,
On 02/23/2012 11:08 AM, Niek de Klein wrote:
Hi everyone,
I have a matrix with multiple columns like this:
charge convexhull_xCoor id
3 3336.43 f_7936733956214261295
3 3339.73 f_7936733956214261295
3 3336.43 f_7936733