[R] Subscripting specified variables in a function

2007-06-26 Thread Zodet, Marc W. (AHRQ)
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,

Re: [R] Subscripting specified variables in a function

2007-06-26 Thread Bill.Venables
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