Hi,
For the below sample data, I would like to replace abbreviations for state names with the full name (e.g., OR-->Oregon). The full state names are available from 1999 onwards. The fips code is the same for the state name. Thanks for any help.
Best,
NM
For the below sample data, I would like to replace abbreviations for state names with the full name (e.g., OR-->Oregon). The full state names are available from 1999 onwards. The fips code is the same for the state name. Thanks for any help.
Best,
NM
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float Year str20 state float fips 2000 "OR" 41 1997 "PA" 42 1997 "RI" 44 1997 "SC" 45 1997 "SD" 46 1997 "TN" 47 1997 "TX" 48 1997 "UT" 49 1997 "VT" 50 1997 "VA" 51 1997 "WA" 53 1997 "WV" 54 1997 "WI" 55 1997 "WY" 56 1998 "OR" 41 1998 "PA" 42 1998 "RI" 44 1998 "SC" 45 1998 "SD" 46 1998 "TN" 47 1998 "TX" 48 1998 "UT" 49 1998 "VT" 50 1998 "VA" 51 1998 "WA" 53 1998 "WV" 54 1998 "WI" 55 1998 "WY" 56 1999 "Oregon" 41 1999 "Pennsylvania" 42 1999 "Rhode Island" 44 1999 "South Carolina" 45 1999 "South Dakota" 46 1999 "Tennessee" 47 1999 "Texas" 48 1999 "Utah" 49 2000 "Vermont" 50 2000 "Virginia" 51 2000 "Washington" 53 2001 "West Virginia" 54 2002 "Wisconsin" 55 2002 "Wyoming" 56 end
Comment