s2c: conversion of a string into a vector of chars

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/util.R

Description

This is a simple utility function to convert a single string such as "BigBang" into a vector of chars such as c("B", "i", "g", "B", "a", "n", "g").

Usage

1
s2c(string)

Arguments

string

a string of chars

Value

a vector of chars. If supplied argument is not a single string, a warning is issued and NA returned.

Author(s)

J.R. Lobry

References

citation("seqinr")

See Also

c2s

Examples

1
stopifnot(all(s2c("BigBang") == c("B", "i", "g", "B", "a", "n", "g")))

seqinr documentation built on Aug. 1, 2017, 5:01 p.m.