gtools::mixedsort
is a wonderful function. However, if a
string contains a hyphen followed by a number, the function would mistake it
as a negative function and sort the values accordingly. This function
prevents mixedsort
from doing so.
1 | mixed_order_sort(vec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.