Hi,
i would like construct a function, but
getting problems for the replacement
of the subset-function.
How can i replace the c(var1,var2,var3,...,varN)
part without ["] or any evaluation ?
really thanks and regards,
list <- c(BP111,BP100))
Error: syntax error trying as.character get no success ;-(
my.cl("c:/project/file.sav",c(BP111,BP100,AGE))
my.cl <- function (file,list)
{
.
.
data1 <- subset(data,select=(deparse(substitute(list)))
.
.
}
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._