[R] Cut a within elements by length, not value, of vectors

Wu Gong wg2f at mtmail.mtsu.edu
Thu Jul 15 19:43:42 CEST 2010


gsub("(.*)(.{2})","\\1/\\2",dates)

-----
A R learner.
-- 
View this message in context: http://r.789695.n4.nabble.com/Cut-a-within-elements-by-length-not-value-of-vectors-tp2290440p2290471.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list