Skip to contents

Alphabetically sorts characters in a string. Vectorized over x.

Usage

strSort(x)

Arguments

x

A string to sort.

Value

A sorted string.

Examples

strSort("cba")
#> [1] "abc"
strSort("zyxcCbB105.a")
#> [1] ".015BCabcxyz"
strSort(c("cba", "zyx"))
#> [1] "abc" "xyz"
strSort(c("cba", NA))
#> [1] "abc" NA