character vector as input to function?
On Wed, 14 Apr 1999, Bill Simpson wrote:
x<-scan("~/rstuff/data/"filename)
#for example, if filename is a0.dat, it will scan("~/rstuff/data/a0.dat")
Try:
filename_c("a0.dat")
paste("~/rstuff/data/", filename, sep="")
[1] "~/rstuff/data/a0.dat" Nicholas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._