Displaying 3 results from an estimated 3 matches for "sordered".
Did you mean:
ordered
2006 Jul 27
6
Any interest in "merge" and "by" implementations specifically for sorted data?
Hi Developers,
I am looking for another new project to help me get more up to speed
on R and to learn something outside of R internals. One recent R
issue I have run into is finding a fast implementations of the
equivalent to the following SAS code:
/* MDPC is an integer sort key made from two integer columns */
MDPC = (MD * 100000) + PCO;
/* sort the dataset by the key */
PROC SORT;
2011 Jan 21
2
ordering a vector
Hi,
is there a R function that order a matrix according to some criteria
based on the rows(or cols) of that matrix?
For example, let's say that my matrix S is composed by n rows S_1,
S_2,.., S_n and that I compute some real value g_i=g(S_i) for each
row.
Then I want to order this set of g_i (from smaller to bigger) and
order the correspondent row to the new position.
Is it possible (apart
2011 Jan 22
0
how to call BayesX in R to see the graph
...m>
Cc: r-help@r-project.org
Subject: Re: [R] ordering a vector
Message-ID:
<AANLkTikifs+5YxOpYeoajMKKU9SrwP8Pv=TtgedkHCgn@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
I think you want the following, assuming you defined your function g():
gValues = apply(S, 1, g);
Sordered = S[order(gValues), ]
Peter
On Fri, Jan 21, 2011 at 11:38 AM, Francesco Petrogalli
<francesco.petrogalli@gmail.com> wrote:
> Hi,
> is there a R function that order a matrix according to some criteria
> based on the rows(or cols) of that matrix?
>
> For example, let's say...