Skip to content
Prev 256164 / 398506 Next

replace an expression with its value, or read macros

On Fri, Apr 8, 2011 at 11:45 AM, Franklin Tamborello II
<Franklin.Tamborello at uth.tmc.edu> wrote:
As a first note, most people who ask this sort of question would be
better off putting the sets of data into a single list rather than
named variables.

However, it is possible to do what you want.  One approach is to use
assign().  Another is to use bquote(), which is related to the Lisp
backquote macro: eval(bquote(.(s) <- read.delim(.(fn),header=FALSE)),
where .() is analogous to comma.

      -thomas