全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1402 4
2023-04-26
如题,在进行关键审计事项的研究,因为数据库导出的是每年里不止一条内容,但是现在进行的研究需要把每一年的所有条(1至4条不等)合并到同一行里,但是我不太懂怎么去做,求助各位大神
举例:
现有情况:
证券代码  公司名称  年份  序号  关键审计事项描述段
x                A          2016   1     test1test1test1test1。
x                A          2016   2     test2test2test2test2。
x                A          2016   3     test3test3test3test3。

x                A          2017   1     test1test1test1test1。
x                A          2017   2     test2test2test2test2。
x                A          2017   3     test3test3test3test3。

x                A          2017   4     test4test4test4test4。

x                A          2018   1     test1test1test1test1。
x                A          2018   2     test2test2test2test2。


我想达到的效果是:
证券代码  公司名称  年份  序号  关键审计事项描述段
x                A          2016          test1test1test1test1。test2test2test2test2。test3test3test3test3。
x                A          2017          test1test1test1test1。test2test2test2test2。test3test3test3test3。test4test4test4test4。
x                A          2018          test1test1test1test1。test2test2test2test2。


二维码

扫码加我 拉你入群

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

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

全部回复
2023-4-21 21:36:54
按照年份分成三个文件,设置唯一id,然后excel里面vlookup就好。
实证咨询,关注久菜盒子
二维码

扫码加我 拉你入群

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

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

2023-4-22 12:48:04
重複發言   不好意思

二维码

扫码加我 拉你入群

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

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

2023-4-22 12:52:16
建議可以先help reshape研究一下
這狀況可使用 reshape wide 如下
reshape wide 关键审计事项描述段 , i( 证券代码 公司名称 年份 ) j ( 序号 )
二维码

扫码加我 拉你入群

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

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

2023-5-13 00:43:14
gigh 发表于 2023-4-30 13:13
建議可以先help reshape研究一下
這狀況可使用 reshape wide 如下
reshape wide 关键审计事项描述段 , i ...
太感谢了!!!成功啦!!!谢谢谢谢!!!!
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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