Learn R Programming

naturalsort (version 0.1.3)

Natural Ordering

Description

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.

Copy Link

Version

Install

install.packages('naturalsort')

Monthly Downloads

1,370

Version

0.1.3

License

BSD_3_clause + file LICENSE

Maintainer

Last Published

August 30th, 2016

Functions in naturalsort (0.1.3)

naturalorder

Natural Ordering Sort
naturalfactor

Natural Ordering Factor
naturalsort-package

Natural Ordering Sort