Re: [R] Macro variable substitution

2009-09-30 Thread Greg Snow
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 like to do. readfunc-function(x) { x - read.table(paste

[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=,) }

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 dyo...@telefonica.net: Hello All, I'm a new R user and have a question about what in SAS would be called

Re: [R] Macro variable substitution

2009-09-29 Thread Erik Iverson
] 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 like to do. readfunc-function(x) { x - read.table(paste(x,.csv,sep