[R] NAs introduced when changing data type

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Jun 22 22:57:44 CEST 2000


Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:

> On Thu, 22 Jun 2000, Tord Snall wrote:
> 
> > Hi all,
> > I am trying to change data type in the Data Editor but when I do, all
> > numbers in the column changes to NA and back in the Console I get the
> > warning message "NAs introduced by coercion".
> > 
> > What's wrong? The table consists of 95 columns and 470 rows.
> 
> Who knows? We'll need more details (such as R version and platform) and a
> reproducible example: see the section 9 of the FAQ.
> 
> All I can say is that simple examples do work for me.

Based on the senders address, let me venture a guess: commas used
instead of decimal points?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list