Re: [R] turn character string into unevaluated R object

2010-03-03 Thread Barry Rowlingson
On Wed, Mar 3, 2010 at 8:26 AM, carol white wrote: > Thanks for all replies but it is still not what I wanted. > > Referring to the previous example that I gave, I want that the objects mat1, > mat2 and mat3 be created as matrix object. I want to access their value > without get() and when I typ

Re: [R] turn character string into unevaluated R object

2010-03-03 Thread carol white
that it's more clear --- On Tue, 3/2/10, Tim Calkins wrote: > From: Tim Calkins > Subject: Re: [R] turn character string into unevaluated R object > To: "Liviu Andronic" > Cc: "carol white" , r-h...@stat.math.ethz.ch > Date: Tuesday, March 2, 2010, 5:50

Re: [R] turn character string into unevaluated R object

2010-03-02 Thread Sharpie
Tim Calkins-2 wrote: > > fortune('parse') > -- > Tim Calkins > 0406 753 997 > Or would that be: fortune( 106 ) ? - Charlie Sharpsteen Undergraduate-- Environmental Resources Engineering Humboldt State University -- View this message in context: http://n4.nabble.com/turn-character-str

Re: [R] turn character string into unevaluated R object

2010-03-02 Thread Tim Calkins
fortune('parse') But if you have a vector of file names you can create a blank list and read.table each file into a list. I generally find that if I'm reading a bunch of files in at the same time they are probably related and I will end up coming back and putting them all in to a list anyways. f

Re: [R] turn character string into unevaluated R object

2010-03-02 Thread Liviu Andronic
On 3/2/10, carol white wrote: > How to turn a character string into an unevaluated R object? I want to load > some > I'm not sure if this is what you're looking for: > as.name("iris") iris > parse(text="iris") expression(iris) attr(,"srcfile") > head(eval(as.name("iris"))) Sepal.Length Sepal.

Re: [R] turn character string into unevaluated R object

2010-03-02 Thread Duncan Murdoch
On 02/03/2010 5:42 PM, carol white wrote: Hi, How to turn a character string into an unevaluated R object? I want to load some files in a directory into data matrix R objects. I could do this with read.table and assign (see below). Then, I want to turn the character string representing a file

[R] turn character string into unevaluated R object

2010-03-02 Thread carol white
Hi, How to turn a character string into an unevaluated R object? I want to load some files in a directory into data matrix R objects. I could do this with read.table and assign (see below). Then, I want to turn the character string representing a file name (the evaluated expression of i) into an