Hello,
I am currently trying to add the year 2021 and 2022 to my dataset. Currently, I have observations for the years 2018-2020, as I need data for the years 2018-2022, I would like to copy the values from the year 2020 to the years 2021 and 2022. My first step, was trying to create the years 2021 and 2022, as they dont exist in my dataset, but, I am failing to do so. The data is sorted by company codes like CUSIP, so per CUSIP I need to add the year 2021 and 2022 and the copied values from year 2020.
How can I do this, ive tried using exapand, but I fail to assign it to the CUSIP.
Thanks in Advance!
Kim
I am currently trying to add the year 2021 and 2022 to my dataset. Currently, I have observations for the years 2018-2020, as I need data for the years 2018-2022, I would like to copy the values from the year 2020 to the years 2021 and 2022. My first step, was trying to create the years 2021 and 2022, as they dont exist in my dataset, but, I am failing to do so. The data is sorted by company codes like CUSIP, so per CUSIP I need to add the year 2021 and 2022 and the copied values from year 2020.
How can I do this, ive tried using exapand, but I fail to assign it to the CUSIP.
Thanks in Advance!
Kim
Comment