g******7 发帖数: 1433 | 1 I have two data sets I want to merge by model
The first data set’s (model) obs is like
“Accord DX”
“Accord LE”
The second data set’s (model obs is just “Accord”,
So is there a way to substr the string before the space in the first data
set, I mean just keep the words before the space, so I can match merge my
two data sets?
Thanks! | w*******l 发帖数: 18 | 2 first_name = substr(name, 1, index(name, ' ')-1) | S*******1 发帖数: 251 | 3 first=scan (name,1, '')
【在 g******7 的大作中提到】 : I have two data sets I want to merge by model : The first data set’s (model) obs is like : “Accord DX” : “Accord LE” : The second data set’s (model obs is just “Accord”, : So is there a way to substr the string before the space in the first data : set, I mean just keep the words before the space, so I can match merge my : two data sets? : Thanks!
| g******7 发帖数: 1433 | | g******7 发帖数: 1433 | |
|