Skip to content
Prev 175835 / 398502 Next

list substring

I was suggested to use

x = data.frame(string = c( "xxxxx1", "xxxxx2", "yyyyx3"))
 x

 apply(x,1,substr,1,4) 

and it's worked good!
Thank you all
Wacek Kusnierczyk wrote: