Learn R Programming

Tmisc (version 0.1.22)

strSort: Sort characters in a string

Description

Alphabetically sorts characters in a string. Vectorized over x.

Usage

strSort(x)

Arguments

x

A string to sort.

Value

A sorted string.

Examples

Run this code
# NOT RUN {
strSort("cba")
strSort("zyxcCbB105.a")
strSort(c("cba", "zyx"))
strSort(c("cba", NA))

# }

Run the code above in your browser using DataLab