The argument for the function is .raw.data. However, some lines are using raw.data (a global variable). Changing the references to .raw.data will make this function more stable, and allow it to be used in functions that call extract_country_data() where raw.data may not necessarily be defined.
The argument for the function is
.raw.data
. However, some lines are usingraw.data
(a global variable). Changing the references to.raw.data
will make this function more stable, and allow it to be used in functions that callextract_country_data()
whereraw.data
may not necessarily be defined.