From david at opsi.co.za  Tue Feb 19 13:50:24 2008
From: david at opsi.co.za (david at opsi.co.za)
Date: Tue, 19 Feb 2008 13:50:24 +0100 (CET)
Subject: [Rd] Assigning a sub-matrix from a data frame to a regular matrix
	causes strange behaviour (version 2.6.1) (PR#10799)
Message-ID: <20080219125025.0B974282EF48@mail.pubhealth.ku.dk>

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]]



[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