[Rd] question

Warnes, Gregory R gregory_r_warnes@groton.pfizer.com
Fri, 7 Dec 2001 18:15:58 -0500


Isn't anything in a data frame that is not explicitly numeric a *factor*?  

-Greg

 >  -----Original Message-----
 >  From: Peter Dalgaard BSA [mailto:p.dalgaard@biostat.ku.dk]
 >  Sent: Friday, December 07, 2001 5:32 PM
 >  To: Erich Neuwirth
 >  Cc: r-devel@stat.math.ethz.ch
 >  Subject: Re: [Rd] question
 >  
 >  
 >  Erich Neuwirth <erich.neuwirth@univie.ac.at> writes:
 >  
 >  > in r 1.3.1,
 >  > i read in data into a dataframe and (erroneously) forgot 
 >  to convert text
 >  > into numbers.
 >  > 
 >  > the frame was called olddata
 >  > then i could to the following calculation:
 >  > 
 >  > vp95<-olddata["vp95"]/olddata["wb95"]
 >  > 
 >  > "vp95" and "wb95" are column names.
 >  > 
 >  > in r 1.4.0, this does not work any more.
 >  > i have to do
 >  > 
 >  > vp95<-as.real(olddata[,"vp95"])/as.real(olddata[,"wb95"])
 >  > 
 >  > is this intended behavior now?
 >  
 >  Eh? Could you give an example of how to create such a data 
 >  frame? The
 >  things I can think up give the same in both versions?
 >  
 >  -- 
 >     O__  ---- Peter Dalgaard             Blegdamsvej 3  
 >    c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 >   (*) \(*) -- University of Copenhagen   Denmark      Ph: 
 >  (+45) 35327918
 >  ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: 
 >  (+45) 35327907
 >  -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
 >  -.-.-.-.-.-.-.-.-.-
 >  r-devel 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-devel-request@stat.math.ethz.ch
 >  _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
 >  _._._._._._._._._._
 >  


LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._