[Rd] Assigning a sub-matrix from a data frame to a regular matrix causes strange behaviour (version 2.6.1) (PR#10799)
david at opsi.co.za
david at opsi.co.za
Tue Feb 19 13:50:24 CET 2008
See below:
> d = data.frame(v1=1:2,v2=1:2)
> x = matrix(0,2,2)
> x[,1:2] = d[,1:2]
> x
[[1]]
[1] 1 2
[[2]]
[1] 1 2
[[3]]
[1] 1 2
[[4]]
[1] 1 2
>
Thanks for all the work in R. Still love it.
David
David Lubinsky
Director
OPSI Systems
Phone: +27 11 880 7951
Cell: +27 82 452 9556
URL: <http://www.opsi.co.za> www.opsi.co.za
Email: <mailto:david at opsi.co.za> david at opsi.co.za
[[alternative HTML version deleted]]
More information about the R-devel
mailing list