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))


Tmisc documentation built on Aug. 23, 2023, 1:07 a.m.