Re: [R] Selecting subsamples

2003-12-05 Thread Jim Lemon
[EMAIL PROTECTED] wrote: Hi all, I?m working with a dataset with 9 columns and 2000 rows. Each row represents an individual and one of the columns represents the volume of that individual (measured in cubic meters). I?d like to select a sample from this dataset (without considering any

[R] Selecting subsamples

2003-12-04 Thread christian_mora
Hi all, I?m working with a dataset with 9 columns and 2000 rows. Each row represents an individual and one of the columns represents the volume of that individual (measured in cubic meters). I?d like to select a sample from this dataset (without considering any probability of the rows) in which

RE: [R] Selecting subsamples

2003-12-04 Thread Christian Schulz
CM, maybe s - which(data.frame$attribute = 100) is a starting point!? regards,christian -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von [EMAIL PROTECTED] Gesendet: Donnerstag, 4. Dezember 2003 13:18 An: [EMAIL PROTECTED] Betreff: [R] Selecting

Re: [R] Selecting subsamples

2003-12-04 Thread Petr Pikal
Hallo I assume you want equal size samples x-runif(1000) this construction gives you y to be set if sum(y) 5 while(sum(y-sample(x,10))5) y-sample(x,10) Cheers On 4 Dec 2003 at 8:18, [EMAIL PROTECTED] wrote: Hi all, I?m working with a dataset with 9 columns and 2000 rows. Each row

Re: [R] Selecting subsamples

2003-12-04 Thread Richard A. O'Keefe
[EMAIL PROTECTED] wrote [that he has a data set with 9 variables (columns) measured on 2000 individuals (rows) and wants a sample] in which the sum of the volume of the individuals in that sample = 100 cubic m. Let's suppose that this information is held in d, a data frame, and that