全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
868 3
2013-08-11
受到警告
提示: 该帖被管理员或版主屏蔽
二维码

扫码加我 拉你入群

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

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

全部回复
2013-8-11 11:47:18
楼主,你自己有尝试看帮助文件?
  strpos(s1,s2)
       Domain s1:    strings (to be searched)
       Domain s2:    strings (to search for)
       Range:        integers 0 to 244
       Description:  returns the position in s1 at which s2 is first found; otherwise, it returns 0.
                         strpos("this","is") = 3
                         strpos("this","it") = 0


substr(s,n1,n2)
       Domain s:     strings
       Domain n1:    integers 1 to 244 and -1 to -244
       Domain n2:    integers 1 to 244 and -1 to -244
       Range:        strings
       Description:  returns the substring of s, starting at column n1, for a length of n2. If n1 < 0, n1 is interpreted as distance from the end of the string; if
                         n2 = . (missing), the remaining portion of the string is returned.

                         substr("abcdef",2,3) = "bcd"



二维码

扫码加我 拉你入群

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

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

2013-8-11 19:14:53
还是不太懂!不过还是要谢谢您的回答!
二维码

扫码加我 拉你入群

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

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

2013-8-11 19:22:15
大念 发表于 2013-8-11 19:14
还是不太懂!不过还是要谢谢您的回答!
不要看陈传波的
要是看的话,必定走弯路
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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