Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

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'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #list #characters
ADD COMMENT
Topic
Name
5+3 =