str_token_sort {levitate}R 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.


[Package levitate version 0.2.0 Index]