Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reshape Data

    Dear Statalist,

    I am currently working with trade data and ideally want to reshape my data from the current setting (see graph in attachment) to the following format:

    Year Tradeflow_import_AZ Tradeflow_export__AZ Tradeflow_import_C1 Tradeflow_export_C2
    2017 123 456 789 101112

    In the next step, I want to add the trade flows for the years 2012 and 2015 so it will be more convenient to have the data in the described format. I tried to use the reshape command but had some problems with defining i and j. Does anybody has an idea how I could approach the problem?

    Thank you very much in advance!
    Best,
    Lea
    Click image for larger version

Name:	Data.png
Views:	1
Size:	38.4 KB
ID:	1670182



  • #2
    Screenshots don't work if you want code suggestions. Review FAQ Advice #12.

    Comment

    Working...
    X