Re: [R] Reading csv-data from variables

From: Felix Schönbrodt <nicebread_at_gmx.net>
Date: Tue, 17 Jun 2008 13:33:06 +0200

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])))

Best wishes,
Felix

Am 17.06.2008 um 12:04 schrieb jim holtman:

> ?textConnection
>
> 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
>> table
>> 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
>> variable
>> into the clipboard to use the read.csv(pipe("pbpaste"))-function,
>> but didn't
>> come to a solution ...
>>
>> Any suggestions? Thanks!
>>
>> Felix
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> 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?



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 17 Jun 2008 - 12:11:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 12:30:50 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive