I'm trying to create a function which will allow me to subset a data set
based on values of various specified variables. I also want to then
apply some other function(s) (e.g., summary).
This is what I've tried so far
test.fx - function(dta, expvar, expval) {
+ newdta - subset(dta,
W.
(AHRQ)
Sent: Wednesday, 27 June 2007 12:43 AM
To: r-help@stat.math.ethz.ch
Subject: [R] Subscripting specified variables in a function
I'm trying to create a function which will allow me to subset a data set
based on values of various specified variables. I also want to then
apply some other