str_token_sort: Tokenise and sort a string

View source: R/string-utils.R

str_token_sortR Documentation

Tokenise and sort a string

Description

Given an input string, tokenise it (using str_tokenise()), sort the tokens alphabetically and return the result as a single space-separated string.

Usage

str_token_sort(x)

Arguments

x

The input string. Non-character inputs will be coerced with as.character().

Value

A character vector the same length as x containing the sorted tokens.


levitate documentation built on Oct. 1, 2023, 1:08 a.m.