Skip to content
Back to formatted view

Raw Message

Message-ID: <CAJOiR6Zy1Lns3PxR3Wx3OT37yzsee2tfh=W0hGtaeYnrupTJ4g@mail.gmail.com>
Date: 2016-04-09T02:21:06Z
From: Val
Subject: assign

Hi all
 I am trying t extract  a variable from a column

      ASk/20005-01-45/90

     Alldatk/25-17-4567/990

I want to assign  a variable to the numbers coming the first"-"

x=01 for the first and
x=17  for teh second

I tried using gsub but did not work

x=gsub("-")

any help?

	[[alternative HTML version deleted]]