CMD + K

r-naturalsort

Community

Provides functions related to human natural ordering. It handles adjacent digits in a character sequence as a number so that natural sort function arranges a character vector by their numbers, not digit characters. It is typically seen when operating systems lists file names. For example, a sequence a-1.png, a-2.png, a-10.png looks naturally ordered because 1 < 2 < 10 and natural sort algorithm arranges so whereas general sort algorithms arrange it into a-1.png, a-10.png, a-2.png owing to their third and fourth characters.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::r-naturalsort

Usage Tracking

0.1.3
1 / 8 versions selected
Downloads (Last 6 months): 0

About

Summary

Provides functions related to human natural ordering. It handles adjacent digits in a character sequence as a number so that natural sort function arranges a character vector by their numbers, not digit characters. It is typically seen when operating systems lists file names. For example, a sequence a-1.png, a-2.png, a-10.png looks naturally ordered because 1 < 2 < 10 and natural sort algorithm arranges so whereas general sort algorithms arrange it into a-1.png, a-10.png, a-2.png owing to their third and fourth characters.

Last Updated

Sep 27, 2017 at 08:49

License

BSD-3-Clause

Supported Platforms

noarch
linux-64
win-32
win-64
macOS-64