I have a list of 100 companies with 10 years of data. Each row is a different year e.g. row 1 is 2010 for company X, row 10 is 2020 for company X and row 11 is 2010 for company Y. I am trying to create a new variable that basically numbers each company from 1-100, so rows 1-10 will = 1, rows 11-20 will = 2 and so on. What code can I write to create this? Note: not all companies have 10 years of data
-
Login or Register
- Log in with
Comment