由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS question - take the words before the space
相关主题
请问:为什么if then 在do loop 中就不起作用了呢?问一个sas的问题4
[SAS] row merging[合集] Question in Excel
A SAS problem有没有SAS最新的机经
a question about length assignmentSAS 小问题求助!!
another sas question问一个简单的SAS问题,多谢
还问道SAS的题目mysql 问题
问一SAS Base的题目CRO SAS Interview questions
请问SPSS 或者 SAS中变量名的变换 AABB - BBAASAS simple question
相关话题的讨论汇总
话题: accord话题: space话题: sas话题: data话题: before
进入Statistics版参与讨论
1 (共1页)
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
4
多谢LS和LSS!
g******7
发帖数: 1433
5
多谢LS和LSS!
1 (共1页)
进入Statistics版参与讨论
相关主题
SAS simple questionanother sas question
一个SAS 问题,紧急!还问道SAS的题目
用SAS找单词问一SAS Base的题目
请问SAS中如何删除字符变量内的零请问SPSS 或者 SAS中变量名的变换 AABB - BBAA
请问:为什么if then 在do loop 中就不起作用了呢?问一个sas的问题4
[SAS] row merging[合集] Question in Excel
A SAS problem有没有SAS最新的机经
a question about length assignmentSAS 小问题求助!!
相关话题的讨论汇总
话题: accord话题: space话题: sas话题: data话题: before