[R] Help with sub-setting data.frame

Philipp Pagel p.pagel at wzw.tum.de
Thu Sep 3 09:11:39 CEST 2009


Your subset problem has been solved already but i'd like to add a
comment on this:

> I want all rows where TTE is equal to 0.024657534

Comparing floating point numbers for equality with '==' is problematic
so a simple df[df$TTE == 0.024657534, ] can easily fail. have a look
at help("=="), especially the note on numerical values and the exmaples.

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/




More information about the R-help mailing list