strSort: Sort characters in a string

View source: R/utils.R

strSortR Documentation

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

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


stephenturner/Tmisc documentation built on April 21, 2024, 8:31 a.m.