全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SPSS论坛
1606 1
2014-04-10
I have a STRG variable VAR001 in which different words are listed. I would like to search the STRG variable VAR001 for a certain text (string), i.e."hallo". If the string is found a second variable (VAR002) should get the value 1. If not: 0.


二维码

扫码加我 拉你入群

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

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

全部回复
2014-4-10 05:27:04
compute var002 = char.index(var001,'hallo') ne 0.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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