[Rd] question

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
07 Dec 2001 23:31:52 +0100


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._