[Rd] question

Erich Neuwirth erich.neuwirth@univie.ac.at
Fri, 07 Dec 2001 19:56:06 +0100


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?



--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._