c2s: Convenience Functions to Convert Strings to Character Vectors

Description Usage Arguments Value Author(s) Examples

Description

These convenience function can be used to convert character strings into vectors of single characters and back.

Usage

1
2
c2s(x)
s2c(x)

Arguments

x

for c2s a single character string and for s2c a vector of single characters.

Value

Either a single character string or a vector of single characters.

Author(s)

Michael Hahsler

Examples

1
2
3
4
5
6
7
s <- sample(c("A", "C", "G", "T"), 10, replace = TRUE)
s

s2 <- c2s(s)
s2

s2c(s2)

mhahsler/rMSA documentation built on May 22, 2019, 8:55 p.m.