[R] Opposite of paste function

Peter Langfelder peter.langfelder at gmail.com
Wed Aug 10 20:23:52 CEST 2011


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



More information about the R-help mailing list