Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • See the .5 fraction in the result of the R code example. The awk code can not return a fraction in the rank. Commented Jul 13, 2021 at 16:28
  • Any reason you don't just use R? Why reinvent the wheel? Do you need it to run where R is not available or would an R script that can read input from a file and run from the commandline be enough? Commented Jul 13, 2021 at 16:31
  • I have other things that need to be done in awk. So having a rank function in awk is convenient in this case. Commented Jul 13, 2021 at 16:41