楼主: K77
999 4

[数据管理求助] 请问如何删除唯一行数据,计算出增长率 [推广有奖]

  • 0关注
  • 2粉丝

本科生

66%

还不是VIP/贵宾

-

威望
0
论坛币
717 个
通用积分
0.0383
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
364 点
帖子
41
精华
0
在线时间
171 小时
注册时间
2020-4-30
最后登录
2025-10-19

楼主
K77 发表于 2021-5-19 12:37:52 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我做个一个出口贸易分析,需要计算各个国家2000年-2019年的出口变化。但是很多国家缺失2000年或者2019年的数据,无法做到2019年-2000年,因此要删除缺失部分的值。请问大家有什么好的方法能删除这些数据吗。
  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input int(year period) str6 tradeflow int reportercode str10 reporter str18 partner double netweightkg
  4. 2019 2019 "Export"  76 "Brazil"     "Italy"               2725056115
  5. 2000 2000 "Export"  76 "Brazil"     "Italy"              10532028834
  6. 2019 2019 "Export" 398 "Kazakhstan" "Russian Federation"  8477781000
  7. 2019 2019 "Export" 604 "Peru"       "China"              15485909500
  8. 2000 2000 "Export" 604 "Peru"       "China"               1461954752
  9. 2019 2019 "Export"  76 "Brazil"     "Malaysia"           28521944000
  10. 2000 2000 "Export"  76 "Brazil"     "Malaysia"             893905167
  11. end
复制代码







二维码

扫码加我 拉你入群

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

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

关键词:增长率 generated Malaysia reporter generate

沙发
K77 发表于 2021-5-19 12:38:31
  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input int(year period) str6 tradeflow int reportercode str10 reporter str18 partner double netweightkg
  4. 2019 2019 "Export"  76 "Brazil"     "Italy"               2725056115
  5. 2000 2000 "Export"  76 "Brazil"     "Italy"              10532028834
  6. 2019 2019 "Export" 398 "Kazakhstan" "Russian Federation"  8477781000
  7. 2019 2019 "Export" 604 "Peru"       "China"              15485909500
  8. 2000 2000 "Export" 604 "Peru"       "China"               1461954752
  9. 2019 2019 "Export"  76 "Brazil"     "Malaysia"           28521944000
  10. 2000 2000 "Export"  76 "Brazil"     "Malaysia"             893905167
  11. end
复制代码

藤椅
K77 发表于 2021-5-19 13:31:39
  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input int(year period) str6 tradeflow int reportercode str10 reporter str18 partner double netweightkg
  4. 2019 2019 "Export"  76 "Brazil"     "Italy"               2725056115
  5. 2000 2000 "Export"  76 "Brazil"     "Italy"              10532028834
  6. 2019 2019 "Export" 398 "Kazakhstan" "Russian Federation"  8477781000
  7. 2019 2019 "Export" 604 "Peru"       "China"              15485909500
  8. 2000 2000 "Export" 604 "Peru"       "China"               1461954752
  9. 2019 2019 "Export"  76 "Brazil"     "Malaysia"           28521944000
  10. 2000 2000 "Export"  76 "Brazil"     "Malaysia"             893905167
  11. end
复制代码

板凳
K77 发表于 2021-5-19 13:33:32
  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input int(year period) str6 tradeflow int reportercode str10 reporter str18 partner double netweightkg
  4. 2019 2019 "Export"  76 "Brazil"     "Italy"               2725056115
  5. 2000 2000 "Export"  76 "Brazil"     "Italy"              10532028834
  6. 2019 2019 "Export" 398 "Kazakhstan" "Russian Federation"  8477781000
  7. 2019 2019 "Export" 604 "Peru"       "China"              15485909500
  8. 2000 2000 "Export" 604 "Peru"       "China"               1461954752
  9. 2019 2019 "Export"  76 "Brazil"     "Malaysia"           28521944000
  10. 2000 2000 "Export"  76 "Brazil"     "Malaysia"             893905167
  11. end
复制代码

报纸
K77 发表于 2021-5-19 13:33:41
  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input int(year period) str6 tradeflow int reportercode str10 reporter str18 partner double netweightkg
  4. 2019 2019 "Export"  76 "Brazil"     "Italy"               2725056115
  5. 2000 2000 "Export"  76 "Brazil"     "Italy"              10532028834
  6. 2019 2019 "Export" 398 "Kazakhstan" "Russian Federation"  8477781000
  7. 2019 2019 "Export" 604 "Peru"       "China"              15485909500
  8. 2000 2000 "Export" 604 "Peru"       "China"               1461954752
  9. 2019 2019 "Export"  76 "Brazil"     "Malaysia"           28521944000
  10. 2000 2000 "Export"  76 "Brazil"     "Malaysia"             893905167
  11. end
复制代码

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-22 20:49