From: Philippe Grosjean <phgrosjean_at_sciviews.org>

Date: Mon 30 Jan 2006 - 19:52:42 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jan 30 20:02:20 2006

Date: Mon 30 Jan 2006 - 19:52:42 EST

Sorry Michael, but I don't understand your question. If you want to intialize a constant matrix (there is not such thing in R, just create a numerical matrix and use it without changing its values), you just use matrix(). For help and arguments of the function, type:

> ?matrix

Best,

Philippe Grosjean

Michael wrote:

> Hi all,

*>
**> Suppose I have the following matrix which is a constant matrix I've copied
**> from some other document:
**>
**> 1.2 3.4 1.4 ...
**> 2.3 3.7 2.6 ...
**> ...
**>
**> How do I make it into a matrix or array in R?
**>
**> What is the fastest way of initializing a constant matrix with this
**> copy/pasted values?
**>
**> Thanks a lot!
**>
**> [[alternative HTML version deleted]]
**>
**> ______________________________________________
**> R-help@stat.math.ethz.ch mailing list
**> https://stat.ethz.ch/mailman/listinfo/r-help
**> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
**>
**>
*

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jan 30 20:02:20 2006

*
This archive was generated by hypermail 2.1.8
: Tue 31 Jan 2006 - 02:21:05 EST
*