Hello,
In a dataset I'm working with there's a set of units appearing more than once. These duplicated units have complete information on all but one variable (bvd_id). bvd_id is only given for one of the duplicates.
For example:
Here row 6, 7 and 8 is duplicates, where bvd_id is only appearing for observation 8.
So, my question is:
How do i copy bvd_id to duplicated rows
I would appreciate any help. Thanks in advance!
// Lorens
In a dataset I'm working with there's a set of units appearing more than once. These duplicated units have complete information on all but one variable (bvd_id). bvd_id is only given for one of the duplicates.
For example:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double ETS str2 country_iso double(bvd_sector_num revenue_last) str18 bvd_id 0 "AT" 5 259988.58054 "AT9030237242" 0 "AT" 5 269890.50545 "AT9070093889" 0 "AT" 29 279000 "AT9050076959" 1 "AT" 5 289215.91183 "AT9070112710" 1 "AT" 29 307006.19459 "AT9150100246" 0 "AT" 29 311963.77477 "NA" 0 "AT" 29 311963.77477 "NA" 0 "AT" 29 311963.77477 "AT9130098253" 1 "AT" 29 312057.59712 "AT9110032051" 1 "AT" 5 312832.49318 "AT9110001799" end
So, my question is:
How do i copy bvd_id to duplicated rows
I would appreciate any help. Thanks in advance!
// Lorens
Comment