RE: [R] About reading data into R

2004-03-10 Thread Gabor Grothendieck
any additional arguments needed to read your dataset correctly). --- Date: Wed, 10 Mar 2004 22:42:45 -0600 (CST) From: Rui Song [EMAIL PROTECTED] To: Gabor Grothendieck [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [R] About reading data into R Thanks

RE: [R] About reading data into R

2004-03-10 Thread Prof Brian Ripley
On Wed, 10 Mar 2004, Rui Song wrote: Thanks for your reply, I chose to use scan here. So can I ask another question, which function works faster, scan or read.table? read.table calls scan, and the two functions do different jobs. read.table reads in a data frame. scan reads a vector or list

RE: [R] About reading data into R

2004-03-08 Thread Gabor Grothendieck
scan has no problem with blank lines. read.table has an argument that controls how it handles blank lines and the default setting is to ignore them. --- Date: Mon, 8 Mar 2004 20:27:48 -0600 (CST) From: Rui Song [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [R] About reading data