I have data from the WIND terminal with the data structured in rows (even time series information)
For example:
Ticker Company Name NetProfitGrowth2009 NetProfitGrowth2010
I believe in order to estimate a time series regression I need to transform the data into the panel data so that its structure is
Ticker Company Year Net Profit Growth (so that for example for 15 years 15 different rows correspond to the same company)
How do I do it quickly since doing it like transposing and pasting/copying would take hours given that I have 347 companies and 15 years? The data is in Excel. What would be your suggestions?
tidyverse) include the packagereadxland the functionread_excel(). Also,pivot_longer()from the pacakgetidyris meant to use the year (ex. inNetProfitGrowthas a value of a variableyear. I don't know about WIND.