[R] character to vector

From: <ajkorman_at_mail.utexas.edu>
Date: Sat 22 Jul 2006 - 06:15:19 EST


I have an object of mode character that contains a long sequence of letters. How can I convert this object into a vector with each element of the vector containing a single letter? Essentially, I want to break the long string of letters into many individual letters.

Thanks for the help.

Alex



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat Jul 22 06:20:46 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 22 Jul 2006 - 08:15:50 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.