[R] opening files in directory
Gabor Grothendieck
ggrothendieck at gmail.com
Mon Sep 4 22:13:31 CEST 2006
On 9/4/06, Mike Nielsen <mr.blacksheep at gmail.com> 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.
More information about the R-help
mailing list