[R] how to separate char and num within a variable

Bill Hyman billhyman1 at yahoo.com
Fri Feb 6 00:20:00 CET 2009


Hi all,

I read in a column which looks like "chr1:000889594-000889638", and need to break them into three columns like "chr1:", "000889594" and "000889638". How shall I do in R. Thanks a lot for your suggestions!

Bill



More information about the R-help mailing list