[R] extracting elements from data.frame using TRUE/FALSE

Stephan Holl sholl at gmx.net
Fri Oct 18 11:32:45 CEST 2002


-----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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list