Description Usage Arguments Value Examples
This function fetches LSOA (Lower Super Output Area) data from the DECC website.
1 2 | get_LSOA_data(year = max(get_LSOA_years()), fuel = c("electricity", "gas"),
sector = "domestic", id, dir)
|
year |
the years of data to fetch. The default is the most recent year. |
sector |
a vector of economic sectors to fetch. For LSOA data, only 'domestic' is allowed. |
fuel |
the fuel type to fetch. Valid values are 'electricity', 'gas' |
id |
a vector of LSOA ids to fetch. If not specified, then all LSOAs are retrieved. |
dir |
an optional directory in which to store a copy of the data |
a long data frame with the requested data. The 'energy' column is measured in GWh.
1 2 3 4 | ## Not run:
lsoa_data <- get_LSOA_data() # Gets all data
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.