Re: [R] Generate random sample interval

2009-08-24 Thread David Winsemius
On Aug 24, 2009, at 2:55 AM, Tammy Ma wrote: Hi, R users, I have a problem about how to generate random sample interval from a duration. For example, during a time duration 0-70s, I want to generate a sample which last 10s. the sample could be 0-10 or 30-40s or 25-35s etc How could I d

Re: [R] Generate random sample interval

2009-08-24 Thread Tammy Ma
I need a simple algorithm to generate random ranges. > From: metal_lical...@live.com > To: r-help@r-project.org > Date: Mon, 24 Aug 2009 09:55:35 +0300 > Subject: [R] Generate random sample interval > > > Hi, R users, > > I have a problem about how to generate ra

[R] Generate random sample interval

2009-08-23 Thread Tammy Ma
Hi, R users, I have a problem about how to generate random sample interval from a duration. For example, during a time duration 0-70s, I want to generate a sample which last 10s. the sample could be 0-10 or 30-40s or 25-35s etc How could I do it in R`?? Thanks a lot. Tammy __