[R] Sweave

2011-02-01 Thread Francesco Petrogalli
Hello everybody, is there a way to tell Sweave to skip the R code and process only the LaTeX part? I know it sounds a little bit weird, but the R code of my document is complete and _slow_ and I need to add the LaTeX part. Thanks, franZ __ R-help@r-p

Re: [R] Find the sign

2011-01-24 Thread Francesco Petrogalli
if (x*y>0) {...} On Mon, Jan 24, 2011 at 1:27 PM, Rainer Schuermann wrote: > On Monday, January 24, 2011 07:18:03 pm Alaios wrote: >> Hello :) >> I wanted to right an expression to check when x and y have the same sign >> and I wrote the following: >> >>  if ((x<0 && y<0) || (x>0 && y>0)) >> >> w

[R] ordering a vector

2011-01-21 Thread Francesco Petrogalli
Hi, is there a R function that order a matrix according to some criteria based on the rows(or cols) of that matrix? For example, let's say that my matrix S is composed by n rows S_1, S_2,.., S_n and that I compute some real value g_i=g(S_i) for each row. Then I want to order this set of g_i (from

[R] confidence interval

2011-01-21 Thread Francesco Petrogalli
Hi, I have a circular shaped set of point on the plane (X,Y) centered in zero. The distribution is more dense close to zero and less dense far from zero. I need to find the radius of a circle centered in zero that contains 65% of the points in the sample. Is there any R directive that can do this?