Learn R Programming

skimr (version 1.0)

sorted_count: Create a contingency table and arrange its levels in descending order

Description

In case of ties, the ordering of results is alphabetical and depends upon the locale. NA is treated as a ordinary value for sorting.

Usage

sorted_count(x)

Arguments

x

An object that can be interpreted as a factor (including logical)

Value

A "table" object, which will be treated as a named numeric vector