Re: [R] Break Matrix

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Thu 11 May 2006 - 19:47:32 EST


Hi

what about
split and cut

 split(your.mat,cut(1:331,28))

HTH
Petr

On 11 May 2006 at 10:15, SUMANTA BASAK wrote:

Date sent:      	Thu, 11 May 2006 10:15:11 +0100 (BST)
From:           	SUMANTA BASAK <r_econometrics@yahoo.co.in>
To:             	R HELP <r-help@stat.math.ethz.ch>
Subject:        	[R] Break Matrix

> Hi All,
>
> I have a (331*12) matrix. I wan t to braek it into 28 parts each
> window having 12 rows, so that each matrix become (12*12) matrix. How
> can i do this.
>
> Thanks,
> Sumanta.
>
>
> ---------------------------------
>
> Send instant messages to your online friends - NOW
> [[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

Petr Pikal
petr.pikal@precheza.cz



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 Thu May 11 20:08:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 11 May 2006 - 22:10:05 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.