strex (version 1.2.0)

str_to_vec: 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

str_to_vec(string)

Arguments

string

A character vector.

Value

A character vector.

Examples

Run this code
# NOT RUN {
str_to_vec("abcdef")
# }

Run the code above in your browser using DataCamp Workspace