From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Re: Babel: communicating irregular data to R source-code block Date: Tue, 24 Apr 2012 00:07:09 -0700 (PDT) Message-ID: <1335251229.83988.YahooMailNeo@web161905.mail.bf1.yahoo.com> References: <1335039472.9075.YahooMailNeo@web161901.mail.bf1.yahoo.com> <87ipgrn4by.fsf@gmx.com> <1335219898.41851.YahooMailNeo@web161901.mail.bf1.yahoo.com> <87aa22t5vn.fsf@gmx.com> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMZqG-0001q6-GG for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 03:07:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMZqB-00041q-3B for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 03:07:16 -0400 Received: from nm25-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.156]:38380) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SMZqA-00041a-RC for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 03:07:11 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" , Eric Schulte Cc: Org-Mode List On Monday, April 23, 2012 at 11:44 PM Thomas S. Dye wrote:=0A.=0A.=0A.=0A> = The documentation of read.table has this:=0A=0A> The number of data columns= is determined by looking at the first five lines=0A> of input (or the whol= e file if it has less than five lines), or from the=0A> length of col.names= if it is specified and is longer. This could conceivably=0A> be wrong if f= ill or blank.lines.skip are true, so specify col.names if=0A> necessary (as= in the =E2=80=98Examples=E2=80=99).=0A=0A> The example is this:=0A=0A> rea= d.csv(tf, fill =3D TRUE, header =3D FALSE,=0A>=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 col.names =3D paste("V", seq_len(ncol), sep =3D ""))= =0A=0A> where read.csv is a synonym of read.table with preset arguments.=0A= =0A> This explains why the sixth line wraps.=0A.=0A.=0A.=0A=0AThanks, Tom.= =C2=A0 I had just run across this myself. I guess I need to walk a mile=0Ai= n somebody's moccasins before complaining, but this behavior on the part of= R=0Aseems totally stupid to me.=0A=0AI'm going to have to mull this over s= ome more.=0A=0A-- Mike