[R] break up a string into strings with a fixed length

J Chen jiaxuan.chen at mdc-berlin.de
Fri Oct 2 11:36:24 CEST 2009


dear all,

I have some very long strings and would like to break up each long string
into multiple strings with a fixed length, e.g. to break up

abcdefghijkl

into

abc, def, ghi, jkl

I tried a couple of commands but was not successful. Any help will be
appreciated.

Best,
Jimmy
-- 
View this message in context: http://www.nabble.com/break-up-a-string-into-strings-with-a-fixed-length-tp25712955p25712955.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list