Re: [R] Macro variable substitution

2009-09-30 Thread Greg Snow
p@r-project.org > Subject: [R] Macro variable substitution > > Hello All, > > I'm a new R user and have a question about what in SAS would be called > macro variable substitution. Below is some R code that doesn't work, > but I think it will illustrate what I&#x

Re: [R] Macro variable substitution

2009-09-29 Thread Erik Iverson
p@r-project.org > Subject: [R] Macro variable substitution > > Hello All, > > I'm a new R user and have a question about what in SAS would be called > macro variable substitution. Below is some R code that doesn't work, > but I think it will illustrate what I'd

Re: [R] Macro variable substitution

2009-09-29 Thread baptiste auguie
Hi, I guess you want ?assign See also this page for a working example, http://wiki.r-project.org/rwiki/doku.php?id=guides:assigning-variable-names HTH, baptiste 2009/9/29 David Young : > Hello All, > > I'm a new R user and have a question about what in SAS would be called > macro variable sub

[R] Macro variable substitution

2009-09-29 Thread David Young
Hello All, I'm a new R user and have a question about what in SAS would be called macro variable substitution. Below is some R code that doesn't work, but I think it will illustrate what I'd like to do. readfunc<-function(x) { x <<- read.table(paste(x,".csv",sep=""), header=TRUE,sep=",") } rea