RDocumentation
Moon
Learn R
Search all packages and functions
filesstrings (version 0.3.2)
StringToVec: Convert a string to a vector of characters
Description
Go from a string to a vector whose \(i\)th element is the \(i\)th character in the string.
Usage
StringToVec(string)
Arguments
string
A string.
Value
A character vector.
Examples
Run this code
StringToVec(
"abcdef"
)
Run the code above in your browser using
DataLab