码迷,mamicode.com
首页 > 其他好文 > 详细

stata随笔(1)

时间:2015-05-15 17:48:10      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:stata   大数据   

 generate str name="zhangsang" 


. generate int age=28


. set obs 1
obs was 0, now 1


. replace name = "zhangsang" in 1
name was str1 now str9
(1 real change made)


. replace age = 22 in 1
(1 real change made)


. set obs 2
obs was 1, now 2


. replace name = "lisi" in 2
(1 real change made)


. replace age = 26 in 2
(1 real change made)


. set obs 3
obs was 2, now 3


. replace name = "李军" in 3
(1 real change made)


. replace age = 31 in 3
(1 real change made)


. browse

本博客所有内容是原创,如果转载请注明来源

http://blog.csdn.net/myhaspl/


技术分享



stata随笔(1)

标签:stata   大数据   

原文地址:http://blog.csdn.net/myhaspl/article/details/45746525

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!