[R] Help me with writing function sort()

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Sun Apr 11 22:32:40 CEST 2010


On Sun, Apr 11, 2010 at 2:30 PM, maslakos <maslakos at gmail.com> wrote:
>
> Hello everyone, i`m new here.. I just started with learning R language and i
> have hard "homework". I need to write function like sort().. Anyone know how
> to do it? Can u give me algorithm for sorting vector? x=c(1,2,-1,1,3,4) or
> something like that.. I`m sorry for my english..
> --

 "homework"? You also need to read the R-help mailing list FAQ. Section four:

"Basic statistics and classroom homework: R-help is not intended for these."

 Also be advised that if this is class homework that your teachers
probably read R-help too.

Barry



More information about the R-help mailing list