I have a character string:
String <- "268.1,271.1,280.9,294.7,285.6,288.6,384.4\n124.8,124.2,116.2,117.7,118.3,122.0,168.3\n18,18,18,18,18,18,18"
I would like to split it into three substrings based on \n.
I did that using the following code:
strsplit(String, "\n")
It resulted in three substrings.
How can I get three separate subsisting so that I can use each vector for calculations?
How can I tokenize the substrings, to create vectors of numeric values?