Answers for "r convert string to list of characters"

R
1

r convert string to list of characters

# Basic syntax:
as.list(strsplit(your_string, "")[[1]])

# Example usage:
your_string = "ACTGAC"
as.list(strsplit(your_string, "")[[1]]) # Returns:
'A'
'C'
'T'
'G'
'A'
'C'
Posted by: Guest on April-28-2021

Code answers related to "r convert string to list of characters"

Browse Popular Code Answers by Language