Learn R Programming

assertive (version 0.2-6)

character_to_list_of_integer_vectors: Convert a character vector to a list of integer vectors.

Description

Split strings by character, then convert to numbers

Usage

character_to_list_of_integer_vectors(x)

Arguments

x
Input to convert.

Value

  • A list of numeric vectors.

See Also

strsplit and as.integer.

Examples

Run this code
character_to_list_of_integer_vectors(c("123", "4567a"))

Run the code above in your browser using DataLab