Learn R Programming

charcuterie (version 0.0.4)

chars.character: Create a chars Object From a String

Description

Create a chars Object From a String

Usage

# S3 method for character
chars(x, ...)

Value

an object of class chars, essentially splitting the string into individual characters

Arguments

x

string to convert to a chars object (length 1 only).

...

unused

Details

chars expects a single string as input. To create a list of these, consider lapply(strings, chars)