Frank Wang <fw42...@gmail.com> you can use function substr() to split the number.
x<-c(substr("02d00000",1,4),substr("02d00000",5,8)) > x [1] "02d0" "0000" [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.