Order a dataframe based on the number of characters in the column provided as an argument.

arrange_by_nchar(data, col, desc = FALSE)

Arguments

data

A dataframe or tibble.

col

Target column.

desc

Return sorted in descending order?

.by_group

If TRUE, will sort first by grouping variable. Applies to grouped data frames only.

See also