Learn R Programming

HardyWeinberg (version 1.7.8)

strsort: Sort tokens of a set of strings

Description

Function strsort collapses all tokens of a vector of strings in a single string with sorted tokens

Usage

strsort(s)

Value

a string

Arguments

s

a vector of character strings

Author

Jan Graffelman jan.graffelman@upc.edu

See Also

alleles

Examples

Run this code
x <- c("AA","AB","BB","AC","CC")
print(strsort(x))

Run the code above in your browser using DataLab