Re: [R] scan and skip - without line breaks in the input file

2010-02-28 Thread Gabor Grothendieck
On UNIX/Linux: myData - scan(pipe(tr '\\t' '\\n' myfile), skip = 3) You might have to adjust this depending on your shell. On Windows there is a tr in Duncan Murdoch's Rtools. On Sat, Feb 27, 2010 at 11:24 AM, Balzer Susanne susanne.bal...@imr.no wrote: Dear all, I am trying to

[R] scan and skip - without line breaks in the input file

2010-02-27 Thread Balzer Susanne
Dear all, I am trying to read in big amounts of data with scan. It's only one variable, numeric values, separated by tabs,.. and it's many of them. So I was thinking that I could use the skip option and read in 10 values at a time - but skip doesn't work, probably because I don't have line

Re: [R] scan and skip - without line breaks in the input file

2010-02-27 Thread David Winsemius
On Feb 27, 2010, at 11:24 AM, Balzer Susanne wrote: Dear all, I am trying to read in big amounts of data with scan. It's only one variable, numeric values, separated by tabs,.. and it's many of them. So I was thinking that I could use the skip option and read in 10 values at a time

Re: [R] scan and skip - without line breaks in the input file

2010-02-27 Thread David Winsemius
, nmax=10) Read 0 items numeric(0) -- David. Kind regards, Susanne -Opprinnelig melding- Fra: David Winsemius [mailto:dwinsem...@comcast.net] Sendt: 27. februar 2010 17:38 Til: Balzer Susanne Kopi: 'r-help@r-project.org' Emne: Re: [R] scan and skip - without line breaks in the input

Re: [R] scan and skip - without line breaks in the input file

2010-02-27 Thread Balzer Susanne
@r-project.org' Emne: Re: [R] scan and skip - without line breaks in the input file On Feb 27, 2010, at 11:24 AM, Balzer Susanne wrote: Dear all, I am trying to read in big amounts of data with scan. It's only one variable, numeric values, separated by tabs,.. and it's many of them. So I

Re: [R] scan and skip - without line breaks in the input file

2010-02-27 Thread Peter Ehlers
David, Susanne, There may be a misunderstanding here. As I understand it, Susanne wants to be able to read the _second_ (and third, etc) 100K values after reading the first 100K, presumably to be processed separately for reasons I can't imagine. If that is correct, then I have no solution other

Re: [R] scan and skip - without line breaks in the input file

2010-02-27 Thread Peter Ehlers
Talk about asleep at the switch. My sincere apologies to both Susanne and David for my stupid message and to group for wasting everyone's time. Ouch, that headslap hurt. -Peter On 2010-02-27 11:05, Peter Ehlers wrote: David, Susanne, There may be a misunderstanding here. As I understand it,

Re: [R] scan and skip - without line breaks in the input file

2010-02-27 Thread Balzer Susanne
[mailto:dwinsem...@comcast.net] Sendt: 27. februar 2010 17:38 Til: Balzer Susanne Kopi: 'r-help@r-project.org' Emne: Re: [R] scan and skip - without line breaks in the input file On Feb 27, 2010, at 11:24 AM, Balzer Susanne wrote: Dear all, I am trying to read in big amounts of data