Re: [R] Random sampling based on the observations

2009-03-24 Thread Arup
Thank you Adrian. Its working.Thank you so much. Take care =^D=) Cheers Arup Pramanik Business Analyst Redwood Associates Bangalore,India. Adrian Dusa wrote: > > On Tuesday 24 March 2009, you wrote: >> Hello!I am having a problem with Random sampling in R. I have used a >> syntax: mydata.sub

Re: [R] Random sampling based on the observations

2009-03-24 Thread Uwe Ligges
Arup wrote: Hello!I am having a problem with Random sampling in R. I have used a syntax: mydata.sub=sample(mydata,7,replace=FALSE,prob=NULL) which allows me to choose a random sample based on the variables(correct me if I am wrong!). Suppose I have 10 variable and if I use the above mentioned c

Re: [R] Random sampling based on the observations

2009-03-24 Thread Adrian Dusa
On Tuesday 24 March 2009, you wrote: > Hello!I am having a problem with Random sampling in R. I have used a > syntax: mydata.sub=sample(mydata,7,replace=FALSE,prob=NULL) which allows me > to choose a random sample based on the variables(correct me if I am > wrong!). Actually, no. You are sampling

[R] Random sampling based on the observations

2009-03-24 Thread Arup
Hello!I am having a problem with Random sampling in R. I have used a syntax: mydata.sub=sample(mydata,7,replace=FALSE,prob=NULL) which allows me to choose a random sample based on the variables(correct me if I am wrong!). Suppose I have 10 variable and if I use the above mentioned command then it