Previously, I wrote about a common interview question: given an array of words, output them in decreasing frequency order, and I provided solutions in java, java8, and python.
Here’s the reason I love R: this can be accomplished in 3 lines of code.
1 2 3 |
|
produces
1 2 |
|