I have a dataset from 2008-2018, but want to add a new row 2019. I tried some codes in this forum but failed.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str10 code float(year total_emp) "01001000" 2008 24469 "01001000" 2009 23737 "01001000" 2010 24176 "01001000" 2011 22873 "01001000" 2012 22971 "01001000" 2013 23203 "01001000" 2014 23292 "01001000" 2015 24284 "01001000" 2016 24765 "01001000" 2017 25352 "01001000" 2018 25594 "01002000" 2008 70295 "01002000" 2009 67640 "01002000" 2010 68744 "01002000" 2011 68286 "01002000" 2012 68887 "01002000" 2013 68672 "01002000" 2014 70472 "01002000" 2015 71462 "01002000" 2016 72791 "01002000" 2017 73888 "01002000" 2018 75397 "01003000" 2008 56473 "01003000" 2009 55137 "01003000" 2010 56989 "01003000" 2011 54733 "01003000" 2012 55031 "01003000" 2013 54958 "01003000" 2014 55211 "01003000" 2015 56413 "01003000" 2016 57494 "01003000" 2017 58482 "01003000" 2018 60192 "01004000" 2008 22481 "01004000" 2009 22297 "01004000" 2010 22085 "01004000" 2011 22386 "01004000" 2012 22610 "01004000" 2013 22923 "01004000" 2014 22899 "01004000" 2015 24018 "01004000" 2016 25254 "01004000" 2017 25539 "01004000" 2018 26033 "01051001" 2008 432 "01051001" 2009 461 "01051001" 2010 596 "01051001" 2011 550 "01051001" 2012 552 "01051001" 2013 618 "01051001" 2014 663 "01051001" 2015 621 "01051001" 2016 642 "01051001" 2017 661 "01051001" 2018 680 "01051002" 2008 6 "01051002" 2009 6 "01051002" 2010 6 "01051002" 2011 8 "01051002" 2012 7 "01051002" 2013 7 "01051002" 2014 7 "01051002" 2015 7 "01051002" 2016 7 "01051002" 2017 10 "01051002" 2018 10 "01051003" 2008 . "01051003" 2009 . "01051003" 2010 33 "01051003" 2011 30 "01051003" 2012 36 "01051003" 2013 37 "01051003" 2014 41 "01051003" 2015 50 "01051003" 2016 63 "01051003" 2017 59 "01051003" 2018 71 "01051004" 2008 100 "01051004" 2009 87 "01051004" 2010 94 "01051004" 2011 81 "01051004" 2012 80 "01051004" 2013 79 "01051004" 2014 84 "01051004" 2015 82 "01051004" 2016 84 "01051004" 2017 86 "01051004" 2018 90 "01051005" 2008 . "01051005" 2009 . "01051005" 2010 . "01051005" 2011 7 "01051005" 2012 . "01051005" 2013 . "01051005" 2014 . "01051005" 2015 . "01051005" 2016 . "01051005" 2017 . "01051005" 2018 5 "01051006" 2008 27 end
Can anyone please give me some advice on how to add an empty row of 2019?
Thanks a lot,
Ed
0 Response to Adding a new empty row(year) to an existing dataset
Post a Comment