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:[EMAIL PROTECTED]> [EMAIL PROTECTED]

 


        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to