[R] Reading csv-data from variables
nicebread at gmx.net
Tue Jun 17 13:33:06 CEST 2008
Thanks for the hint - with a little adaptation (employing
as.character) I could solve my problem:
c <- read.csv2(textConnection(as.character(dat[7,8])))
Am 17.06.2008 um 12:04 schrieb jim holtman:
> On Tue, Jun 17, 2008 at 5:08 AM, Felix Schönbrodt
> <nicebread at gmx.net> wrote:
>> Dear Listmembers,
>> I'm looking for a convenient way to read csv-data which are stored in
>> variables of data frames.
>> I'm working with nested csv-data: one of the columns of the first
>> stores a long string containing a second csv-coded table. My
>> problem is to
>> parse that second-order csv-table.
>> As the read.csv command requires a link to a file, I couldn't get
>> it to read
>> the data from a variable. I also tried to copy the content of the
>> into the clipboard to use the read.csv(pipe("pbpaste"))-function,
>> but didn't
>> come to a solution ...
>> Any suggestions? Thanks!
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
> What is the problem you are trying to solve?
More information about the R-help