Re: [R] help in run if

2012-02-15 Thread William Dunlap
t; Sent: Wednesday, February 15, 2012 1:12 AM > To: r-help@r-project.org > Subject: Re: [R] help in run if > > On Wed, Feb 15, 2012 at 12:31:54AM -0800, arunkumar wrote: > > hi > > > > My data looks like > > > > x=c(0,0,0,0,0) > > y=c(10,20,30,40,50)

Re: [R] help in run if

2012-02-15 Thread jim holtman
try this: > x=c(0,0,0,0,0) > y=c(10,20,30,40,50) > mapply(runif, 1, x, y) [1] 3.6958437 0.1190025 23.1382387 35.8738653 28.6983410 On Wed, Feb 15, 2012 at 3:31 AM, arunkumar wrote: > hi > > My data looks like > > x=c(0,0,0,0,0) > y=c(10,20,30,40,50) > > i want to generate 5 random numbers

Re: [R] help in run if

2012-02-15 Thread Petr Savicky
On Wed, Feb 15, 2012 at 12:31:54AM -0800, arunkumar wrote: > hi > > My data looks like > > x=c(0,0,0,0,0) > y=c(10,20,30,40,50) > > i want to generate 5 random numbers between x and y keeping x values as > min and y value as max using apply > > it takes time when it is run using for Hi.

[R] help in run if

2012-02-15 Thread arunkumar1111
hi My data looks like x=c(0,0,0,0,0) y=c(10,20,30,40,50) i want to generate 5 random numbers between x and y keeping x values as min and y value as max using apply it takes time when it is run using for - Thanks in Advance Arun -- View this message in context: http://r.789695.n