Re: [R] Please help translate this program in python to R.

2019-12-15 Thread Richard O'Keefe
The obvious question is "why?" If you just want to sort stuff, ?sort and ?order tell you about the sorting methods available in R. If you want to translate this specific algorithm into R for some reason, (a) if you don't know enough about array processing in R to do this yourself, how are you

Re: [R] Please help translate this program in python to R.

2019-12-14 Thread Eric Berger
And similar to my response to the C++ question you posted, it is possible to incorporate Python code into R programs using the reticulate package. On Sun, Dec 15, 2019 at 5:58 AM Boris Steipe wrote: > > See my response to the C++ question you posted a minute later. > > B. > > > > > > On 2019-12-1

Re: [R] Please help translate this program in python to R.

2019-12-14 Thread Boris Steipe
See my response to the C++ question you posted a minute later. B. > On 2019-12-15, at 05:35, Александр Дубровский wrote: > > # Iterative Merge sort (Bottom Up) > > # Iterative mergesort function to > # sort arr[0...n-1] > def mergeSort(a): > >current_size = 1 > ># Outer loop for t