[R] Selecting subsamples

Christian Schulz christian.schulz at questico.de
Thu Dec 4 13:24:51 CET 2003


CM,

maybe
s <- which(data.frame$attribute >= 100)
is a starting point!?

regards,christian



-----Ursprüngliche Nachricht-----
Von: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]Im Auftrag von
christian_mora at vtr.net
Gesendet: Donnerstag, 4. Dezember 2003 13:18
An: r-help at stat.math.ethz.ch
Betreff: [R] Selecting subsamples


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 the sum of the
volume of the individuals in that sample >= 100 cubic m.
I?ll appreciate any suggestion
Thanks
CM

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list