On 9/4/06, Mike Nielsen <[EMAIL PROTECTED]> wrote: > R won't do variable interpolation inside quotation marks as perl does.
Just as an aside, gsubfn in package gsubfn will do perl-style (well, sort of) string interpolation: > library(gsubfn) > i <- 1 > gsubfn(x = "data_files/file$i") [1] "data_files/file1" cati and cati0 in the same package provide for such interpolation within cat. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
