From lucas at toulouse.inra.fr  Tue Jul 22 16:29:43 2003
From: lucas at toulouse.inra.fr (lucas@toulouse.inra.fr)
Date: Tue Jul 22 15:29:34 2003
Subject: [Rd] read.table with option dec=',' (PR#3532)
Message-ID: <200307221329.h6MDThJH026124@pubhealth.ku.dk>

Full_Name: Antoine Lucas
Version: 1.7.0  (2003-04-16)
OS: Linux
Submission from: (NULL) (193.51.197.253)


I have a problem using read.table:

If in a dataframe, we have a string containing a dot, write.table
will not write any file while using option "dec=','".

Example

> m <- "1.5"
> write.table(m,dec=',')
Error in if (n%%nrowv == 0) value <- value[rep(1:nrowv, length = n), ,  : 
        missing value where TRUE/FALSE needed
In addition: Warning messages: 
1: no finite arguments to min; returning Inf 
2: no finite arguments to max; returning -Inf 

Whereas the contrary write the table:
> m <- "1,5"
> write.table(m,dec='.')
"x"
"1" "1,5"


Best regards

Antoine Lucas

--
Antoine  Lucas        
INRA, Unit de biomtrie et     |  Tel 05 61 28 53 34
intelligence artificielle       |  Fax 05 61 28 53 35
http://genopole.toulouse.inra.fr/~lucas


[Rd] read.table with option dec=',' (PR#3532)
lucas@toulouse.inra.fr