[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Babel: communicating irregular data to R source-code block
From: |
Michael Hannon |
Subject: |
Re: [O] Babel: communicating irregular data to R source-code block |
Date: |
Tue, 24 Apr 2012 00:07:09 -0700 (PDT) |
On Monday, April 23, 2012 at 11:44 PM Thomas S. Dye wrote:
.
.
.
> The documentation of read.table has this:
> The number of data columns is determined by looking at the first five lines
> of input (or the whole file if it has less than five lines), or from the
> length of col.names if it is specified and is longer. This could conceivably
> be wrong if fill or blank.lines.skip are true, so specify col.names if
> necessary (as in the ‘Examples’).
> The example is this:
> read.csv(tf, fill = TRUE, header = FALSE,
> col.names = paste("V", seq_len(ncol), sep = ""))
> where read.csv is a synonym of read.table with preset arguments.
> This explains why the sixth line wraps.
.
.
.
Thanks, Tom. I had just run across this myself. I guess I need to walk a mile
in somebody's moccasins before complaining, but this behavior on the part of R
seems totally stupid to me.
I'm going to have to mull this over some more.
-- Mike
- Re: [O] Babel: communicating irregular data to R source-code block, (continued)
- Re: [O] Babel: communicating irregular data to R source-code block, Thomas S. Dye, 2012/04/21
- Re: [O] Babel: communicating irregular data to R source-code block, Michael Hannon, 2012/04/23
- Re: [O] Babel: communicating irregular data to R source-code block, Eric Schulte, 2012/04/23
- Re: [O] Babel: communicating irregular data to R source-code block, Thomas S. Dye, 2012/04/23
- Re: [O] Babel: communicating irregular data to R source-code block, Eric Schulte, 2012/04/23
- Re: [O] Babel: communicating irregular data to R source-code block, Thomas S. Dye, 2012/04/24
- Re: [O] Babel: communicating irregular data to R source-code block,
Michael Hannon <=
- Re: [O] Babel: communicating irregular data to R source-code block, Thomas S. Dye, 2012/04/24
- Re: [O] Babel: communicating irregular data to R source-code block, Thomas S. Dye, 2012/04/24
- Re: [O] Babel: communicating irregular data to R source-code block, Thomas S. Dye, 2012/04/25
- Re: [O] Babel: communicating irregular data to R source-code block, Michael Hannon, 2012/04/25
- Re: [O] Babel: communicating irregular data to R source-code block, Thomas S. Dye, 2012/04/26