c2s: Convenience Functions to Convert Strings to Character Vectors

View source: R/s2c.R

string2characterR Documentation

Convenience Functions to Convert Strings to Character Vectors

Description

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

Usage

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

s <- sample(c("A", "C", "G", "T"), 10, replace = TRUE)
s

s2 <- c2s(s)
s2

s2c(s2)

mhahsler/rMSA documentation built on May 24, 2024, 3:36 p.m.