I am using a dataset that, for some reason, has a column called id_b, and another called id_c. Every row with a value in id_b has nothing in id_c, and vice versa. I simply want to combine these columns into a column named id.
I have attempted to use egen id = rowmax (id_b id_c), but whilst the id_b and id_c columns are both long data, this produces a column which is a float, and when I convert this to long, these are rounding issues as the IDs are 8 or 9 numbers long.
I have attempted to use egen id = rowmax (id_b id_c), but whilst the id_b and id_c columns are both long data, this produces a column which is a float, and when I convert this to long, these are rounding issues as the IDs are 8 or 9 numbers long.
Comment