---
From: Nico Met
To: r-help@r-project.org
Cc:
Sent: Wednesday, August 29, 2012 9:24 AM
Subject: [R] Sorting of columns of a matrix
Dear all,
Please suggest me how can I do it.
I have a matrix which look like following:
x1 x2 x3 t1 .01 0.3 0 t2 0 0.1 0.01 t3 0 .01 .01 t4 0 0 t5 5 0 0
-1.4130988
A.K.
- Original Message -
From: Nico Met
To: r-help@r-project.org
Cc:
Sent: Wednesday, August 29, 2012 9:24 AM
Subject: [R] Sorting of columns of a matrix
Dear all,
Please suggest me how can I do it.
I have a matrix which look like following:
x1 x2 x3 t1 .01 0.3 0 t2 0 0.
Met [mailto:nicome...@gmail.com]
> *Sent:* Wednesday, August 29, 2012 4:56 PM
> *To:* PIKAL Petr
>
> *Subject:* Re: [R] Sorting of columns of a matrix
>
> ** **
>
> Thanks a lot.
>
> ** **
>
> But I also want to attach row names (if avai
Hi
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Nico Met
> Sent: Wednesday, August 29, 2012 4:25 PM
> To: Berend Hasselman
> Cc: r-help@r-project.org
> Subject: Re: [R] Sorting of columns of a matrix
Hi
From: Nico Met [mailto:nicome...@gmail.com]
Sent: Wednesday, August 29, 2012 5:27 PM
To: PIKAL Petr
Cc: r-help
Subject: Re: [R] Sorting of columns of a matrix
Yes, each column shall have different sequence of row names
And what? I do not understand? You still did not describe how do you
Met [mailto:nicome...@gmail.com]
Sent: Wednesday, August 29, 2012 4:56 PM
To: PIKAL Petr
Subject: Re: [R] Sorting of columns of a matrix
Thanks a lot.
But I also want to attach row names (if available) associated with each column.
In that case does your second code works in the same way?
thanks
Please find the require info:
set.seed(12345)
X<-matrix(rnorm(5*10),nrow=5)
dim(X)
X
[,1] [,2][,3] [,4] [,5] [,6]
[,7] [,8] [,9] [,10]
[1,] 1.2774431 -1.2427735 0.81933548 -2.1098586 -1.6726799 -2.2994684
-0.28823228 0.192930
On 29-08-2012, at 16:08, Nico Met wrote:
> Hello john,
>
> thanks for the suggestion. Please find an example:
>
>> X<-matrix(rnorm(5*10),nrow=5)
>
>> dim(X)
> [1] 5 10
>> X
> [,1] [,2][,3] [,4] [,5] [,6]
> [,7] [,8] [,9] [,10]
> [1,
>
>
> > -Original Message-
> > From: nicome...@gmail.com
> > Sent: Wed, 29 Aug 2012 15:24:17 +0200
> > To: r-help@r-project.org
> > Subject: [R] Sorting of columns of a matrix
> >
> > Dear all,
> >
> > Please suggest me how can I do
il.com
> Sent: Wed, 29 Aug 2012 15:24:17 +0200
> To: r-help@r-project.org
> Subject: [R] Sorting of columns of a matrix
>
> Dear all,
>
> Please suggest me how can I do it.
>
>
> I have a matrix which look like following:
>
> x1 x2 x3 t1 .01 0.3 0 t2 0 0.1 0.0
Dear all,
Please suggest me how can I do it.
I have a matrix which look like following:
x1 x2 x3 t1 .01 0.3 0 t2 0 0.1 0.01 t3 0 .01 .01 t4 0 0 t5 5 0 0 t6
0 0 0 t7 0 0 0 t8 0 0 0 t9 0.6 0 0 t10 0 0 0.66 t11 0 0.6 0.11 t12 0
0.4 0
I want to sort decreasing order in each column ba
11 matches
Mail list logo