Stephan Holl
2002-Oct-18 09:32 UTC
[R] extracting elements from data.frame using TRUE/FALSE
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear List, I try to extract elements out of an existing data.frame. but my following functions only returns a dataframe with nothing in it. the including function get.hist.s() plots a beautyfied histogram... any clue?! get.disag2 <- function(x,y,z) { # x: dataframe including y as variable # z: element of variable y in dataframe x blah <- x[x$z==y, ] get.hist.s(blah) } Thank you for your help Cheers - -- Stephan Holl GnuPG Key-ID: 11946A09 ICQ# 117277975 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9r9U9Eg9SKhGUagkRAsYsAJ4o+tpSoBIg0wjrTXSlPAndLWZdTwCdF8/Z 4oq1HQoDD027HsGe0CMa6Os=DJRR -----END PGP SIGNATURE----- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._