Re: [R] matlab-like constant matrix initialization?

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue 31 Jan 2006 - 01:51:28 EST

Do you mean they are in the clipboard in the format shown? If that is the case then do this:

  as.matrix(read.table("clipboard"))

On 1/30/06, Michael <comtech.usa@gmail.com> 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 Tue Jan 31 02:05:31 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:15 EST