[R] matlab-like constant matrix initialization?
phgrosjean at sciviews.org
Mon Jan 30 09:52:42 CET 2006
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,
> 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 at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help