HI,
I guess this might be what you want.
dat1<-structure(c(0.585528817843856, 0.709466017509524, 0, -0.453497173462763,
0.605887455840393, -1.81795596770373, 0.630098551068391,
-0.276184105225216,
-0.284159743943371, -0.919322002474128, -0.116247806352002,
1.81731204370422,
0.370627864257954, 0.520
HI,
Not sure I understand the last part.
Try this:
dat1<-structure(c(0.585528817843856, 0.709466017509524, 0, -0.453497173462763,
0.605887455840393, -1.81795596770373, 0.630098551068391,
-0.276184105225216,
-0.284159743943371, -0.919322002474128, -0.116247806352002,
1.81731204370422,
0.370627864257
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,
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,] 1.2774431 -1.2427735 0.81933548 -2.1098586 -1.6726799 -2.2
Perhaps you could supply the matrix using dput() ? It is a handy way to supply
sample data. Just do dput(mydata), copy the results and paste into email.
At the moment your matrix is almost unreadable.
John Kane
Kingston ON Canada
> -Original Message-
> From: nicome...@gmail.com
> Sen
10 matches
Mail list logo