I have different variables, resulting from generating new variables with regexs and regexm. Since these numbers I was looking for have different formats, I created redundant values.
My goal is to create a new variable where only the longest string or the longest number in one row appears. Any help kindly appreciated!
Ref3 | Ref4 | Ref5 | Ref6 |
Ref. 2589 | Ref. 258 | ||
Ref. 6265 | Ref. 626 | ||
Ref. 3403 | Ref. 340 | Ref. 34 |
My goal is to create a new variable where only the longest string or the longest number in one row appears. Any help kindly appreciated!
RefNew | |||
Ref. 2589 | |||
Ref. 6265 | |||
Ref. 3403 |
Comment