Re: [R] Read in dataset without saving it

2010-06-09 Thread Gabor Grothendieck
See: http://rwiki.sciviews.org/doku.php?id=tips:data-io:ms_windows&s=excel On Wed, Jun 9, 2010 at 4:38 AM, Paul Chatfield wrote: > > A simple question - I have a small dataset to read in and want to copy and > paste part from Excel and paste it into an R script file without creating > more files

Re: [R] Read in dataset without saving it

2010-06-09 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 09.06.2010 12:44:33: > See ?textConnection, eg > test <-"1 2.5 3.4 > 1 2.3 3.1 > 1 2.6 3.9 > 2 2.9 2.8 > 2 2.6 2.9 > 2 2.7 2.9 > 3 2.3 3.3 > 3 2.4 3.0 > 3 2.7 3.2" > x <- textConnection(test) > read.table(x) > close(x) > > On Wed, Jun 9, 2010 at 10:38 A

Re: [R] Read in dataset without saving it

2010-06-09 Thread Joris Meys
See ?textConnection, eg test <-"1 2.5 3.4 1 2.3 3.1 1 2.6 3.9 2 2.9 2.8 2 2.6 2.9 2 2.7 2.9 3 2.3 3.3 3 2.4 3.0 3 2.7 3.2" x <- textConnection(test) read.table(x) close(x) On Wed, Jun 9, 2010 at 10:38 AM, Paul Chatfield wrote: > > A simple question - I have a small dataset to read in and want to

[R] Read in dataset without saving it

2010-06-09 Thread Paul Chatfield
A simple question - I have a small dataset to read in and want to copy and paste part from Excel and paste it into an R script file without creating more files saving it as a .txt/.csv and then reading that in. I want to read in 3 columns e.g. 1 2.5 3.4 1 2.3 3.1 1 2.6 3.9 2 2.9 2.8 2 2.6 2.9 2 2