[R] BUG?

About this list Date view Thread view Subject view Author view

Jens Oehlschlägel-Akiyoshi (jens.oehlschlaegel-akiyoshi@mdfactory.de)
Mon, 20 Dec 1999 21:08:05 +0100



Hi,

under RW0.651 and RW0.091
I found

> x <- data.frame(char=I(letters[1:3]), num=1:3, log=c(TRUE, FALSE, NA),
fak=factor(letters[24:26]))
> x
  char num log fak
1 a 1 TRUE x
2 b 2 FALSE y
3 c 3 NA z
>
> x[1,1] <- 'a'
> x[1,1]
[1] "1"
>
> x$char[1] <- 'a'
> x$char[1]
[1] "a"
>
> x[1,"char"] <- 'a'
> x[1,"char"]
[1] "1"

I have no time to go after this tonight, but it looks liks bug, doesn't it?
Regards

--
Dr. Jens Oehlschlägel-Akiyoshi
MD FACTORY GmbH
Bayerstrasse 21

80335 München

Tel.: 089 545 28-27 Fax.: 089 545 28-10 http://www.mdfactory.de

Standard Disclaimers: Opinions expressed here are personal and are not otherwise represented.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Tue 04 Jan 2000 - 13:34:03 EST