[R] How to draw an observation uniformly from a given dataset?

2004-09-08 Thread wanr
Hi all, I have two questions stated below: 1. How to draw an observation uniformly from a given data? For example, I have a dataset (or dataframe) with 10 observations (with a set of variables) and I want to uniformly select an observation from this given dataset, that is, the probability of

Re: [R] How to draw an observation uniformly from a given dataset?

2004-09-08 Thread David Forrest
On Wed, 8 Sep 2004 [EMAIL PROTECTED] wrote: Hi all, I have two questions stated below: 1. How to draw an observation uniformly from a given data? For example, I have a dataset (or dataframe) with 10 observations (with a set of variables) and I want to uniformly select an observation from

Re: [R] How to draw an observation uniformly from a given dataset?

2004-09-08 Thread Roger D. Peng
[EMAIL PROTECTED] wrote: Hi all, I have two questions stated below: 1. How to draw an observation uniformly from a given data? For example, I have a dataset (or dataframe) with 10 observations (with a set of variables) and I want to uniformly select an observation from this given dataset, that