I have found how to reimplement order method from R language in PHP:
$value) {
$array_new[$key + 1] = $value;
}
$array = $array_new;
print "\n --\n";
$uniq_arr = array_unique($array);
ksort($uniq_arr);
foreach ($array as $key => $value) {
if ($key !== ($key +1)) {
$array[$
Vladimir Eremeev wrote:
>
>
> XpeH wrote:
>>
>> I am trying to understand how the order method in R language works, and
>> then I'd like to do the same in some other language.
>>
>
> 1. Type order in R command prompt (without "(" and ")") and press enter.
> This will print you the body of
XpeH wrote:
>
> I am trying to understand how the order method in R language works, and
> then I'd like to do the same in some other language.
>
1. Type order in R command prompt (without "(" and ")") and press enter.
This will print you the body of this function, so you can inspect it. You
c
Hello, Thierry
Thank you for the fast reply
actually my php script is not correct, the correct logic is R script, by
writing this peace of code in php I tried to do the same logic that R script
does. But this php programm algorirm probably is not correct so results are
incorrect also.
I am tryi
eH
> Verzonden: woensdag 3 oktober 2007 14:38
> Aan: r-help@r-project.org
> Onderwerp: [R] Reimplement order somehow
>
>
> Hello,
>
> I have a script in R language that makes sorting using the
> order() method of R language. What I need is to reimplement
> this met
Hello,
I have a script in R language that makes sorting using the order() method of
R language. What I need is to reimplement this method in any other language
(PHP, Perl, Python, Java maybe).
First I tried to reimplement it in php, here is some numbers that i need to
sort:
1,2,3,4,5,6,7,8,9,10,
6 matches
Mail list logo