Could I get help on how to replace values within the same column? Here is an example:
country year countryname fx
250 1997 France 5.83669
250 1998 France 5.89952
250 1999 France .
250 2000 France .
250 2001 France .
250 2002 France .
250 2003 France .
1000 1997 Euro Area .
1000 1998 Euro Area .
1000 1999 Euro Area .938283
1000 2000 Euro Area 1.08271
1000 2001 Euro Area 1.11653
1000 2002 Euro Area 1.05756
1000 2003 Euro Area .884048
Starting in 1999, the "fx" values for France are missing, and I intend to replace these missing values with the corresponding ones from the Euro Area for each respective year. Considering that I aim to fill in missing "fx" values for all EU countries, would splitting the data by country and merging them to fill in the missing values be the most efficient approach?
Many thanks in advance!
country year countryname fx
250 1997 France 5.83669
250 1998 France 5.89952
250 1999 France .
250 2000 France .
250 2001 France .
250 2002 France .
250 2003 France .
1000 1997 Euro Area .
1000 1998 Euro Area .
1000 1999 Euro Area .938283
1000 2000 Euro Area 1.08271
1000 2001 Euro Area 1.11653
1000 2002 Euro Area 1.05756
1000 2003 Euro Area .884048
Starting in 1999, the "fx" values for France are missing, and I intend to replace these missing values with the corresponding ones from the Euro Area for each respective year. Considering that I aim to fill in missing "fx" values for all EU countries, would splitting the data by country and merging them to fill in the missing values be the most efficient approach?
Many thanks in advance!
Comment