[R] assign

Val valkremk at gmail.com
Sat Apr 9 04:21:06 CEST 2016

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



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


any help?

	[[alternative HTML version deleted]]

More information about the R-help mailing list