write out data to all states

write_to_all_states(data, names, region_list = gcamusa.STATES)

Arguments

data

Base tibble to start from

names

Character vector indicating the column names of the returned tibble

region_list

Character vector containing names of regions for which USA national data is repeated

Value

Tibble with data written out to all USA states

Note

Used for USA national data by GCAM region, which is repeated for each US state

Contains an argument which allows user to specify a different region list.

For example, this is occasionally used to write all USA data to GCAM-USA grid regions.