全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2053 1
2010-12-24
data exam;
  input name $ class $ score ;
  if name = ‘Tim’ or name = ‘Sally’;
  cards;
Tim math 9
Tim history 8  
Tim science 7
Sally math 10
Sally science 7
Sally history 10
John math 8
John history 8
John science 9
;
run;

data student4;
  set exam;
  where name =: ‘T’ or name contains ‘ally’;  
run;
等号后面冒号是什么忆昔?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-12-24 15:23:04
T开头吧,SAS help里如下解释
The colon causes SAS to compare the same number of characters in the shorter value and the longer value. In this case, the shorter string contains one character; therefore, SAS tests only the first character from the longer value. All names beginning with a T make the comparison true.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群