Re: [Rd] read.table() fails with https in R 3.6 but not in R 3.5

2019-05-13 Thread Gábor Csárdi
Hi Tomas, On Mon, May 13, 2019 at 11:42 AM Tomas Kalibera wrote: [...] > This is because (from NEWS:) > > The default ‘user agent’ has been changed when accessing http:// >and https:// sites using libcurl. (A site was found which caused >libcurl to infinite-loop with the previous

Re: [Rd] read.table() fails with https in R 3.6 but not in R 3.5

2019-05-13 Thread Tomas Kalibera
On 5/6/19 2:27 PM, Stephen Berman wrote: On Mon, 6 May 2019 11:12:25 +0200 Ralf Stubner wrote: On 04.05.19 19:04, Stephen Berman wrote: In versions of R prior to 3.6.0 the following invocation succeeds, returning the data frame shown: read.table("https://www.dwds.de/r/stat?corpus=kern&cnt=t

Re: [Rd] read.table() fails with https in R 3.6 but not in R 3.5

2019-05-06 Thread Stephen Berman
On Mon, 6 May 2019 11:12:25 +0200 Ralf Stubner wrote: > On 04.05.19 19:04, Stephen Berman wrote: >> In versions of R prior to 3.6.0 the following invocation succeeds, >> returning the data frame shown: >> >>> read.table("https://www.dwds.de/r/stat?corpus=kern&cnt=tokens&date=decade&format=text";,

Re: [Rd] read.table() fails with https in R 3.6 but not in R 3.5

2019-05-06 Thread Ralf Stubner
On 04.05.19 19:04, Stephen Berman wrote: > In versions of R prior to 3.6.0 the following invocation succeeds, > returning the data frame shown: > >> read.table("https://www.dwds.de/r/stat?corpus=kern&cnt=tokens&date=decade&format=text";, >> header=TRUE) >Dekade Anzahl > 11900 11467254 >

Re: [Rd] read.table

2017-06-04 Thread Uwe Ligges
On 04.06.2017 11:50, jing hua zhao wrote: Hi All, I wonder if there should be one character for quote= in read.table, i.e., args(read.table) function (file, header = FALSE, sep = "", quote = "\"'", dec = ".", ... I have a file containing the following lines, 08248-GOTERM3'-phosphoa

Re: [Rd] read.table reads "i" as NA_complex_

2015-10-07 Thread William Dunlap
Thank you both! Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Oct 7, 2015 at 1:44 PM, peter dalgaard wrote: > This is fixed/changed in r-devel: > > > str(type.convert("i")) > Factor w/ 1 level "i": 1 > > It was reported on July 18 as PR#16473, if you care. > > (Funny how an obscure issu

Re: [Rd] read.table reads "i" as NA_complex_

2015-10-07 Thread peter dalgaard
This is fixed/changed in r-devel: > str(type.convert("i")) Factor w/ 1 level "i": 1 It was reported on July 18 as PR#16473, if you care. (Funny how an obscure issue goes unnoticed for a decade, then pops up twice independently within a few months. A property of the Poisson process, I suppose.

Re: [Rd] read.table reads "i" as NA_complex_

2015-10-07 Thread Prof Brian Ripley
On 07/10/2015 21:22, William Dunlap wrote: I just noticed that read.table() and type.convert() interpret the string "i" as a missing value of type complex. > str(read.table(text=c("i\ni\ni\ni\n"))) 'data.frame': 4 obs. of 1 variable: $ V1: cplx NA NA NA ... > str(type.convert

Re: [Rd] read.table() with quoted integers

2014-04-26 Thread ashmoran
Milan Bouchet-Valat wrote > It seems that read.table() in R 3.0.1 (Linux 64-bit) does not consider > quoted integers as an acceptable value for columns for which > colClasses="integer". But when colClasses is omitted, these columns are > read as integer anyway. > > For example, let's consider a fi

Re: [Rd] read.table() code fails outside of the utils package

2014-04-21 Thread Andrew Piskorski
On Mon, Apr 21, 2014 at 06:44:05PM +0100, Prof Brian Ripley wrote: > On 21/04/2014 18:08, Andrew Piskorski wrote: > >> .External(utils:::C_readtablehead, ...) > > > > Ah, that works fine, and is nice and simple. So problem solved, thank > > you! > > > > I do still wonder though, with the C symbol

Re: [Rd] read.table() code fails outside of the utils package

2014-04-21 Thread Prof Brian Ripley
On 21/04/2014 18:08, Andrew Piskorski wrote: On Mon, Apr 21, 2014 at 12:43:55PM -0400, Simon Urbanek wrote: And that's how it should be - there is not reason why any other code should link to it. Why don't you just use .External(utils:::C_readtablehead, ...) Ah, that works fine, and is nice

Re: [Rd] read.table() code fails outside of the utils package

2014-04-21 Thread Gabriel Becker
Andrew, I haven't checked, but probably because it wasn't registered as a native routine for that package. ~G On Mon, Apr 21, 2014 at 10:08 AM, Andrew Piskorski wrote: > On Mon, Apr 21, 2014 at 12:43:55PM -0400, Simon Urbanek wrote: > > > And that's how it should be - there is not reason why a

Re: [Rd] read.table() code fails outside of the utils package

2014-04-21 Thread Andrew Piskorski
On Mon, Apr 21, 2014 at 12:43:55PM -0400, Simon Urbanek wrote: > And that's how it should be - there is not reason why any other code should > link to it. Why don't you just use > > .External(utils:::C_readtablehead, ...) Ah, that works fine, and is nice and simple. So problem solved, thank yo

Re: [Rd] read.table() code fails outside of the utils package

2014-04-21 Thread Simon Urbanek
Andrew, On Apr 21, 2014, at 11:53 AM, Andrew Piskorski wrote: > One of the great things about R is how readable and re-usable much of > its own implementation is. If an R function doesn't do quite what you > want but is close, it is usually very easy to read its code and start > adapting that a

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Peter Meilstrup
On Fri, Oct 4, 2013 at 9:20 AM, Peter Meilstrup wrote: > I think this is not the right approach -- quoting is a transport-layer > feature of the CSV format, not part of the application layer. Quotes > should always be interpreted away from column data before any data is > handed to the application

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Henrik Bengtsson
On Fri, Oct 4, 2013 at 9:15 AM, peter dalgaard wrote: > > On Oct 4, 2013, at 17:10 , Henrik Bengtsson wrote: > >> On Fri, Oct 4, 2013 at 4:55 AM, Duncan Murdoch >> wrote: >>> On 13-10-04 7:31 AM, Joshua Ulrich wrote: On Tue, Oct 1, 2013 at 11:29 AM, David Winsemius wrote: > >

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Peter Meilstrup
I think this is not the right approach -- quoting is a transport-layer feature of the CSV format, not part of the application layer. Quotes should always be interpreted away from column data before any data is handed to the application layer. (CSV does not _have_ any application layer; type informa

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread peter dalgaard
On Oct 4, 2013, at 17:10 , Henrik Bengtsson wrote: > On Fri, Oct 4, 2013 at 4:55 AM, Duncan Murdoch > wrote: >> On 13-10-04 7:31 AM, Joshua Ulrich wrote: >>> >>> On Tue, Oct 1, 2013 at 11:29 AM, David Winsemius >>> wrote: On Sep 30, 2013, at 6:38 AM, Joshua Ulrich wrote:

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Henrik Bengtsson
On Fri, Oct 4, 2013 at 4:55 AM, Duncan Murdoch wrote: > On 13-10-04 7:31 AM, Joshua Ulrich wrote: >> >> On Tue, Oct 1, 2013 at 11:29 AM, David Winsemius >> wrote: >>> >>> >>> On Sep 30, 2013, at 6:38 AM, Joshua Ulrich wrote: >>> On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat wrot

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Milan Bouchet-Valat
Le vendredi 04 octobre 2013 à 07:55 -0400, Duncan Murdoch a écrit : > On 13-10-04 7:31 AM, Joshua Ulrich wrote: > > On Tue, Oct 1, 2013 at 11:29 AM, David Winsemius > > wrote: > >> > >> On Sep 30, 2013, at 6:38 AM, Joshua Ulrich wrote: > >> > >>> On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Val

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Milan Bouchet-Valat
Le vendredi 04 octobre 2013 à 07:34 -0500, Joshua Ulrich a écrit : > On Thu, Oct 3, 2013 at 9:44 AM, Jens Oehlschlägel > wrote: > > I agree that quoted integer columns are not the most efficient way of > > delivering csv-files. However, the sad reality is that one receives such > > formats and sti

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Joshua Ulrich
On Thu, Oct 3, 2013 at 9:44 AM, Jens Oehlschlägel wrote: > I agree that quoted integer columns are not the most efficient way of > delivering csv-files. However, the sad reality is that one receives such > formats and still needs to read the data. Therefore it is not helpful to > state that one sh

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Duncan Murdoch
On 13-10-04 7:31 AM, Joshua Ulrich wrote: On Tue, Oct 1, 2013 at 11:29 AM, David Winsemius wrote: On Sep 30, 2013, at 6:38 AM, Joshua Ulrich wrote: On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat wrote: Hi! It seems that read.table() in R 3.0.1 (Linux 64-bit) does not consider quote

Re: [Rd] read.table() with quoted integers

2013-10-04 Thread Joshua Ulrich
On Tue, Oct 1, 2013 at 11:29 AM, David Winsemius wrote: > > On Sep 30, 2013, at 6:38 AM, Joshua Ulrich wrote: > >> On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat >> wrote: >>> Hi! >>> >>> >>> It seems that read.table() in R 3.0.1 (Linux 64-bit) does not consider >>> quoted integers as an a

Re: [Rd] read.table() with quoted integers

2013-10-01 Thread David Winsemius
On Sep 30, 2013, at 6:38 AM, Joshua Ulrich wrote: > On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat > wrote: >> Hi! >> >> >> It seems that read.table() in R 3.0.1 (Linux 64-bit) does not consider >> quoted integers as an acceptable value for columns for which >> colClasses="integer". But

Re: [Rd] read.table() with quoted integers

2013-10-01 Thread Peter Meilstrup
On Tue, Oct 1, 2013 at 5:50 AM, Peter Meilstrup wrote: > > On Mon, Sep 30, 2013 at 8:10 AM, Joris Meys wrote: >> >> Regardless of whether "stored as character" is interpreted the R way or the >> ASCII way, the point Joshua makes is rather valid. Mainly because >> read.table has an argument quote

Re: [Rd] read.table() with quoted integers

2013-10-01 Thread Peter Meilstrup
On Mon, Sep 30, 2013 at 8:10 AM, Joris Meys wrote: > Regardless of whether "stored as character" is interpreted the R way or the > ASCII way, the point Joshua makes is rather valid. Mainly because > read.table has an argument quote with default value \"'. This means that at > least according to R

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Henrik Bengtsson
On Mon, Sep 30, 2013 at 5:33 AM, Milan Bouchet-Valat wrote: > Hi! > > > It seems that read.table() in R 3.0.1 (Linux 64-bit) does not consider > quoted integers as an acceptable value for columns for which > colClasses="integer". But when colClasses is omitted, these columns are > read as integer

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Joris Meys
On Mon, Sep 30, 2013 at 5:27 PM, Milan Bouchet-Valat wrote: > Le lundi 30 septembre 2013 à 17:10 +0200, Joris Meys a écrit : > > Regardless of whether "stored as character" is interpreted the R way > > or the ASCII way, the point Joshua makes is rather valid. Mainly > > because read.table has an a

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Milan Bouchet-Valat
Le lundi 30 septembre 2013 à 17:10 +0200, Joris Meys a écrit : > Regardless of whether "stored as character" is interpreted the R way > or the ASCII way, the point Joshua makes is rather valid. Mainly > because read.table has an argument quote with default value \"'. This > means that at least acco

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Joris Meys
It is after all an R-related mailing list, and professor Ripley has set a certain standard ages ago ;) On Mon, Sep 30, 2013 at 5:19 PM, Milan Bouchet-Valat wrote: > Le lundi 30 septembre 2013 à 10:07 -0500, Joshua Ulrich a écrit : > > On Mon, Sep 30, 2013 at 9:45 AM, Milan Bouchet-Valat > wrote

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Milan Bouchet-Valat
Le lundi 30 septembre 2013 à 10:07 -0500, Joshua Ulrich a écrit : > On Mon, Sep 30, 2013 at 9:45 AM, Milan Bouchet-Valat > wrote: > > Le lundi 30 septembre 2013 à 08:38 -0500, Joshua Ulrich a écrit : > >> On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat > >> wrote: > >> > Hi! > >> > > >> >

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Joris Meys
Regardless of whether "stored as character" is interpreted the R way or the ASCII way, the point Joshua makes is rather valid. Mainly because read.table has an argument quote with default value \"'. This means that at least according to R, everything between either " or ' should be seen as of type

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Joshua Ulrich
On Mon, Sep 30, 2013 at 9:45 AM, Milan Bouchet-Valat wrote: > Le lundi 30 septembre 2013 à 08:38 -0500, Joshua Ulrich a écrit : >> On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat >> wrote: >> > Hi! >> > >> > >> > It seems that read.table() in R 3.0.1 (Linux 64-bit) does not consider >> > qu

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Milan Bouchet-Valat
Le lundi 30 septembre 2013 à 08:38 -0500, Joshua Ulrich a écrit : > On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat > wrote: > > Hi! > > > > > > It seems that read.table() in R 3.0.1 (Linux 64-bit) does not consider > > quoted integers as an acceptable value for columns for which > > colClas

Re: [Rd] read.table() with quoted integers

2013-09-30 Thread Joshua Ulrich
On Mon, Sep 30, 2013 at 7:33 AM, Milan Bouchet-Valat wrote: > Hi! > > > It seems that read.table() in R 3.0.1 (Linux 64-bit) does not consider > quoted integers as an acceptable value for columns for which > colClasses="integer". But when colClasses is omitted, these columns are > read as integer

Re: [Rd] read.table segfaults

2011-08-27 Thread Göran Broström
On Fri, Aug 26, 2011 at 9:41 PM, Scott wrote: > It does look like you've got a memory issue. perhaps using >  as.is=TRUE, and/or stringsAsFactors=FALSE will help as optional arguments > to read.table > > if you don't specify these sorts of things, R can have to look through the > file and figure o

Re: [Rd] read.table segfaults

2011-08-27 Thread Göran Broström
On Fri, Aug 26, 2011 at 11:55 PM, Ben Bolker wrote: > Scott googlemail.com> writes: > >> >> It does look like you've got a memory issue. perhaps using >>   as.is=TRUE, and/or stringsAsFactors=FALSE will help as optional arguments >> to read.table >> >> if you don't specify these sorts of things,

Re: [Rd] read.table segfaults

2011-08-26 Thread Ben Bolker
Scott googlemail.com> writes: > > It does look like you've got a memory issue. perhaps using > as.is=TRUE, and/or stringsAsFactors=FALSE will help as optional arguments > to read.table > > if you don't specify these sorts of things, R can have to look through the > file and figure out which

Re: [Rd] read.table segfaults

2011-08-26 Thread Scott
It does look like you've got a memory issue. perhaps using as.is=TRUE, and/or stringsAsFactors=FALSE will help as optional arguments to read.table if you don't specify these sorts of things, R can have to look through the file and figure out which columns are characters/factors etc and so the l

Re: [Rd] read.table segfaults

2011-08-26 Thread Göran Broström
One further note: No problem with R version 2.13.0 (2011-04-13) Göran 2011/8/26 Göran Broström : > Another one: > > The 'death.RData' was created about a year ago, but ...? Same info as below. > > Göran > >> load("../Data/death.RData") >> summary(death) > >  *** caught segfault *** > address 0x

Re: [Rd] read.table segfaults

2011-08-26 Thread Göran Broström
Another one: The 'death.RData' was created about a year ago, but ...? Same info as below. Göran > load("../Data/death.RData") > summary(death) *** caught segfault *** address 0x4e04959, cause 'memory not mapped' Traceback: 1: match(x, levels) 2: factor(a, levels = ll[!(ll %in% exclude)]

Re: [Rd] read.table / type.convert with NA values

2010-06-29 Thread Peter Ehlers
Is there a compelling reason to have strip.white default to FALSE? It seems to me that it would be more common to want the TRUE case. Having said that, I must confess that I've never had the problem Erik describes. -Peter Ehlers On 2010-06-29 17:14, Matt Shotwell wrote: The document RFC 4180

Re: [Rd] read.table / type.convert with NA values

2010-06-29 Thread Matt Shotwell
The document RFC 4180 (which appears to be the CSV standard used by R, see ?read.table) considers spaces to be part of the fielded value. Some have taken this to mean that all white space characters should be considered part of the fielded value, though the RFC is not explicit here. Hence, this beh

Re: [Rd] read.table on long lines buggy (PR #13626) (sorry not a bug!) (PR#13627)

2009-03-27 Thread manikandan_narayanan
Hi,=20 Sorry, didn't notice a quote in the longer line that was causing the problem. Everything works fine with read.table(quote=3D"",...). Please remove PR#13626 report - I tried to do so from the bug tracking web interface, but did not have the permissions. Thanks! Notice: This e-mail messa

Re: [Rd] read.table() causes segfault with incorrect data (PR#11627)

2008-06-11 Thread Bill Dunlap
On Wed, 11 Jun 2008 [EMAIL PROTECTED] wrote: > Full_Name: Juho Vuori > Version: 2.7.0 (2008-04-22) > OS: Linux poseidon.fimr.fi 2.6.23.17-88.fc7PAE #1 SMP Thu May 15 00:22:53 EDT > 2008 i686 i686 i386 GNU/Linux > Submission from: (NULL) (193.166.188.194) > > > Calling read.table() twice the follo

Re: [Rd] read.table underR2.7.0 (PR#11605)

2008-06-06 Thread ripley
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-621931503-1212766709=:10799 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Not a bug, sinc

Re: [Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread Prof Brian Ripley
On Mon, 21 Jan 2008, David Reitter wrote: On 21 Jan 2008, at 11:38, Prof Brian Ripley wrote: The first column of your file repeats 0 and 1, and your specification asked for the first column to be taken as the row names: from the help file If 'row.names' is not specified and the header li

Re: [Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread david . reitter
--Apple-Mail-1--729254567 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 21 Jan 2008, at 11:38, Prof Brian Ripley wrote: > > The first column of your file repeats 0 and 1, and your > specification asked for the fir

Re: [Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread ripley
On Sun, 20 Jan 2008, [EMAIL PROTECTED] wrote: > > --Apple-Mail-44--797532055 > Content-Type: text/plain; > charset=US-ASCII; > format=flowed; > delsp=yes > Content-Transfer-Encoding: 7bit > > I believe read.table may report misleading errors. In this example, > where a header lin

Re: [Rd] read.table: wrong error message? (PR#10592)

2008-01-21 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > --Apple-Mail-44--797532055 > Content-Type: text/plain; > charset=US-ASCII; > format=flowed; > delsp=yes > Content-Transfer-Encoding: 7bit > > I believe read.table may report misleading errors. In this example, > where a header line in a file has an inc

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Dirk Eddelbuettel
On Wed, Jan 09, 2008 at 03:27:31PM -0500, Gabor Grothendieck wrote: > Use file.file()$size to find out how large the file is > and skip files larger than some cutoff. You presumably meant file.info()$size Dirk > > On Jan 9, 2008 2:01 PM, Derek Stephen Elmerick <[EMAIL PROTECTED]> wrote: > > He

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Bill Dunlap
On Wed, 9 Jan 2008, Derek Stephen Elmerick wrote: > Hello ? > > I am trying to write code that will read in multiple datasets; > however, I would like to skip any dataset where the read-in process > takes longer than some fixed cutoff. A generic version of the function > is the following: > > for(

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Gabor Grothendieck
That was supposed to be file.info()$size On Jan 9, 2008 3:27 PM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Use file.file()$size to find out how large the file is > and skip files larger than some cutoff. > > On Jan 9, 2008 2:01 PM, Derek Stephen Elmerick <[EMAIL PROTECTED]> wrote: > > > Hell

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Gabor Grothendieck
Use file.file()$size to find out how large the file is and skip files larger than some cutoff. On Jan 9, 2008 2:01 PM, Derek Stephen Elmerick <[EMAIL PROTECTED]> wrote: > Hello – > > I am trying to write code that will read in multiple datasets; > however, I would like to skip any dataset where th

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Sean Davis
On Jan 9, 2008 2:01 PM, Derek Stephen Elmerick <[EMAIL PROTECTED]> wrote: > Hello – > > I am trying to write code that will read in multiple datasets; > however, I would like to skip any dataset where the read-in process > takes longer than some fixed cutoff. A generic version of the function >

Re: [Rd] read.table() can't read in this table (But Splus can)

2007-05-15 Thread Liaw, Andy
It's the quoting character(s). This following seems to read the file in correctly: R> DF <- read.table("http://llmpp.nih.gov/DLBCL/NEJM_Web_Fig1data";, + header = TRUE, sep = "\t", quote="") R> str(DF) 'data.frame': 7399 obs. of 295 variables: [...] If I have to guess, it's

Re: [Rd] read.table() can't read in this table (But Splus can) (PR#9687)

2007-05-15 Thread marc_schwartz
On Mon, 2007-05-14 at 23:41 +0200, [EMAIL PROTECTED] wrote: > Full_Name: vax, 9000 > Version: 2.4.0, 2.2.1 > OS: 2.4.0: Mac OS X; 2.2.1: Linux > Submission from: (NULL) (192.35.79.70) > > > To reproduce this bug, first go to the website "http://llmpp.nih.gov/DLBCL/"; > and > download the 14.8M d

Re: [Rd] read.table versus read.csv (PR#9284)

2006-10-10 Thread Ben Bolker
Arnost.Komarek med.kuleuven.be> writes: > > Dear R Core Team, > > Help to 'read.table' claims that > 'read.csv' is identical to 'read.table' except for the defaults. Pedantically speaking, the claim is true: the difference is in the default for the quote= argument. > > However, 'read.tabl

Re: [Rd] read.table() errors with tab as separator (PR#9061)

2006-07-05 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > > Sorry, unclear. We already change quote= for read.delim and read.csv, > > and I was suggesting also to modify the default for comment.char for > > those functions, but definitely not for read.table. > > > > Arguably, those functions are there to ha

Re: [Rd] read.table() errors with tab as separator (PR#9061)

2006-07-05 Thread Prof Brian Ripley
On Wed, 5 Jul 2006, Peter Dalgaard wrote: > Prof Brian Ripley <[EMAIL PROTECTED]> writes: > >> On Wed, 5 Jul 2006, Peter Dalgaard wrote: >> >>> [EMAIL PROTECTED] writes: >>> (1) read.table(), with sep="\t", identifies 13 our of 1400 records, in a file with 1400 records of 3 fields each,

Re: [Rd] read.table() errors with tab as separator (PR#9061)

2006-07-05 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > On Wed, 5 Jul 2006, Peter Dalgaard wrote: > > > [EMAIL PROTECTED] writes: > > > >> (1) read.table(), with sep="\t", identifies 13 our of 1400 records, > >> in a file with 1400 records of 3 fields each, as having only 2 fields. > >> This happens unde

Re: [Rd] read.table() errors with tab as separator (PR#9061)

2006-07-05 Thread Prof Brian Ripley
On Wed, 5 Jul 2006, Peter Dalgaard wrote: > [EMAIL PROTECTED] writes: > >> (1) read.table(), with sep="\t", identifies 13 our of 1400 records, >> in a file with 1400 records of 3 fields each, as having only 2 fields. >> This happens under version 2.3.1 for Windows as well as with >> R 2.3.1 for Ma

Re: [Rd] read.table() errors with tab as separator (PR#9061)

2006-07-05 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > (1) read.table(), with sep="\t", identifies 13 our of 1400 records, > in a file with 1400 records of 3 fields each, as having only 2 fields. > This happens under version 2.3.1 for Windows as well as with > R 2.3.1 for Mac OS X, and with R-devel under Mac OS X. > [R vers

Re: [Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > On Fri, 20 Jan 2006 [EMAIL PROTECTED] wrote: > > > Full_Name: emiel ver loren > > Version: 2.2.0 > > We do ask you not to send reports on obselete versions of R. Well, we might forgive that (please at least check against the current NEWS file), but USING FAKE EMAIL

Re: [Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread Roger Bivand
On Fri, 20 Jan 2006 [EMAIL PROTECTED] wrote: > Full_Name: emiel ver loren > Version: 2.2.0 > OS: Windows XP > Submission from: (NULL) (145.117.31.248) > > > Dear R-community and developers, > > I have been trying to read in a tab delimeted file where the column names and > the row names are of

Re: [Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Full_Name: emiel ver loren > Version: 2.2.0 > OS: Windows XP > Submission from: (NULL) (145.117.31.248) > > > Dear R-community and developers, > > I have been trying to read in a tab delimeted file where the column names and > the row names are of the form "GO:05

Re: [Rd] read.table with ":" in column names (PR#8511)

2006-01-20 Thread ripley
Please do not report documented behaviour as a bug! See the 'check.names' argument to read.table. In your second example you are applying as.character to a data frame, and you seem not to realize that. We specifically ask you NOT to use R-bugs to ask questions. (What is happening is that you g

Re: [Rd] read.table error upon package installation (PR#8230)

2005-10-21 Thread McGehee, Robert
, everyone who needs to edit this file can just do so in emacs, and putting quotes around the fields is an easy fix. Thanks Robert -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 9:59 AM To: McGehee, Robert Cc: r-devel@stat.math.ethz.

Re: [Rd] read.table error upon package installation (PR#8230)

2005-10-21 Thread Prof Brian Ripley
data(), but any feedback on this is welcomed. Using quotes, e.g. "A B C" may work? > > Thanks, > Robert > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, October 21, 2005 1:58 AM > To: r-devel@stat.math.e

Re: [Rd] read.table error upon package installation (PR#8230)

2005-10-21 Thread McGehee, Robert
CTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 1:58 AM To: r-devel@stat.math.ethz.ch Cc: [EMAIL PROTECTED] Subject: Re: [Rd] read.table error upon package installation (PR#8230) What is the R error here? The default delimiter in read.table is not \t but whitespace, so the first exam

Re: [Rd] read.table error upon package installation (PR#8230)

2005-10-20 Thread ripley
What is the R error here? The default delimiter in read.table is not \t but whitespace, so the first example has 2 and 3 rows (fine for header=T) and the second has 2 and 4 rows. On Fri, 21 Oct 2005 [EMAIL PROTECTED] wrote: > Upon upgrading to R 2.2.0 on my Windows box, I found that one of my