On Wed, Aug 10, 2011 at 11:22 AM, Soyeon Kim <yunni0731 at gmail.com> wrote: > Dear All, > > I have vn variable >> vn > [1] "V300" "V376" > What I want to get is > 300 376 as.numeric(substring(vn, 2)) HTH Peter