Learn R Programming

Tmisc (version 1.0.1)

strSort: Sort characters in a string

Description

Alphabetically sorts characters in a string. Vectorized over x.

Usage

strSort(x)

Value

A sorted string.

Arguments

x

A string to sort.

Examples

Run this code
strSort("cba")
strSort("zyxcCbB105.a")
strSort(c("cba", "zyx"))
strSort(c("cba", NA))

Run the code above in your browser using DataLab