[R] change the size of matrix

David Winsemius dwinsemius at comcast.net
Mon Apr 26 22:07:24 CEST 2010


On Apr 26, 2010, at 3:58 PM, anderson nuel wrote:

> I would find function which change the size automatically.

Read the help page again. You have too quickly formed an erroneous  
conclusion.

>
> For example:
>
> > A=matrix(c(1,4,7,10,2,5,8,11,3,6,9,12),c(3,4))
> > A
>      [,1] [,2] [,3] [,4]
> [1,]    1   10    8    6
> [2,]    4    2   11    9
> [3,]    7    5    3   12
>
> B=func(A,2,6)
>
> B becomes:
>
>     1    3    5    7    9   11
>     2    4    6    8   10   12
>
> Best
>
> 2010/4/26 David Winsemius <dwinsemius at comcast.net>
>
> On Apr 26, 2010, at 3:18 PM, anderson nuel wrote:
>
> Dear r-help,
>
> Could you help me to find the function which change the size of  
> matrix .
>
> ?dim
>
>
>
> Best Regards
>
>
> David Winsemius, MD
> West Hartford, CT
>
>

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list