Re: [R] Treat an Unquoted Character String as a Data Frame

2011-09-01 Thread Liviu Andronic
On Thu, Sep 1, 2011 at 5:48 PM, Jean V Adams wrote: > Try this > > data <- eval(parse(text=paste(study, level, ".", population, sep=""))) > ..or this: data <- get(paste(study, level, ".", population, sep="")) Liviu > Jean > > - > > dbateman wrote on 08/31/2011 17:44:44: > > I have several d

Re: [R] Treat an Unquoted Character String as a Data Frame

2011-09-01 Thread Jean V Adams
Try this data <- eval(parse(text=paste(study, level, ".", population, sep=""))) Jean - dbateman wrote on 08/31/2011 17:44:44: I have several datasets that come from different studies (fv02 and fv03), they represent different levels (patients and lesions), and they have different patient

[R] Treat an Unquoted Character String as a Data Frame

2011-08-31 Thread dbateman
I have several datasets that come from different studies (fv02 and fv03), they represent different levels (patients and lesions), and they have different patient populations (itt, mitt, mitt3). I wanted to write some code that would pass my three requirements into a function I wrote, produce the o