##' decctools
##'
##' Provides easy access to United Kingdom energy statistics for R.
##' Most of the underlying data comes from the Department of Energy
##' and Climate Change website, \url{http://www.decc.gov.uk}. A
##' working internet connection is needed for almost all of the
##' functions.
##'
##' @seealso \code{\link{get_LAD_data}}, \code{\link{get_MSOA_data}},
##' \code{\link{get_LSOA_data}}, \code{\link{get_geo_lookup}},
##' \code{\link{get_grid_mix}}, \code{\link{get_grid_carbon}}
##' @name decctools
##' @docType package
NULL
##' Descriptive data on local administrative districts
##'
##' A data frame providing extra information about local
##' administrative districts (LADs) in the United Kingdom. This
##' includes the following fields:
##'
##' \itemize{
##'
##' \item name: the name of the LAD
##'
##' \item country: the country in which the LAD is located
##'
##' \item new: the UK geography local administrative district
##' long code (LAD11CD)
##'
##' ##' \item old: the UK geography local administrative district
##' short code (LAD11CDO)
##'
##' \item urban_class: the urban/rural classification
##'
##' \item group_name: a descriptive label describing the character of
##' each LAD (the Supergroup of ONS's area classifications)
##'
##' \item population: mid-year 2011 population estimates for each LAD
##'
##' \item area: the area of the LAD in hectares
##'
##' \item hdd: the heating degree days of the local climate
##'
##' \item cdd: the cooling degree days of the local climate
##'
##' }
##'
##' @details There are multiple subnational geographies available for
##' the UK; please see
##' \url{http://www.ons.gov.uk/ons/guide-method/geography/beginner-s-guide/index.html}
##' for an overview. This data set tries to make it easier to handle
##' the links between two of these geographies: local administrative
##' districts (LADs, the UK administrative geography for local
##' authorities) and local administrative units (LAUs, the
##' pan-European equivalent for EuroStat).
##'
##' The first five data fields, and the \code{area} field, should be
##' self-explanatory and can be used to link other data sets, most
##' notably the energy statistics provided by
##' \code{\link{get_LAD_data}}. However the other items require a bit
##' of explanation.
##'
##' \code{urban_class}: These classifications are described at
##' \url{http://www.ons.gov.uk/ons/guide-method/geography/products/area-classifications/rural-urban-definition-and-la/rural-urban-local-authority--la--classification--england-/index.html}
##' and are summarized as follows:
##'
##' \itemize{
##'
##' \item MU = Major Urban: districts with either 100,000 people or 50
##' per cent of their population in urban areas with a population of
##' more than 750,000
##'
##' \item LU = Large Urban: districts with either 50,000 people or 50
##' per cent of their population in one of 17 urban areas with a
##' population between 250,000 and 750,000
##'
##' \item OU = Other Urban: districts with fewer than 37,000 people or
##' less than 26 per cent of their population in rural settlements and
##' larger market towns
##'
##' \item SR = Significant Rural: districts with more than 37,000
##' people or more than 26 per cent of their population in rural
##' settlements and larger market towns
##'
##' \item R50 = Rural-50: districts with at least 50 per cent but less
##' than 80 per cent of their population in rural settlements and
##' larger market towns
##'
##' \item Rural-80: districts with at least 80 per cent of their
##' population in rural settlements and larger market towns
##'
##' }
##'
##' Unfortunately these classifications are only defined for
##' England. For all other countries, assumptions have been made about
##' which LAUs are urban (LU) or rural (SR) using the following data
##' sources:
##'
##' \itemize{
##'
##' \item Wales,
##' \url{http://www.ons.gov.uk/ons/guide-method/geography/beginner-s-guide/administrative/wales/unitary-authorities/index.html}
##'
##' \item Scotland,
##' \url{http://www.scotland.gov.uk/Publications/2004/06/19498/38788}
##'
##' \item Northern Ireland,
##' \url{http://www.nisra.gov.uk/geography/default.asp10.htm}
##'
##' }
##'
##' \code{group_name} The Office for National Statistics calculated an
##' area classification for each local authority; based on 2001 census
##' data; see
##' \url{http://www.ons.gov.uk/ons/guide-method/geography/products/area-classifications/ns-area-classifications/index/index.html}.
##' This field presents the group name, which is simply a descriptive
##' label of the character of each LAD.
##'
##' \code{hdd}, \code{cdd}: These fields represent annual heating and
##' cooling degree days for each LAD; the raw data come from
##' \url{http://www.eci.ox.ac.uk/research/energy/degreedays.php}.
##' Heating degree days are assumed to be measured against a 15.5
##' degrees C base temperature and cooling degree days against 13
##' degrees C. The Oxford data set provides point estimates for 77
##' locations around the UK; an inverse distance weighting
##' interpolation was performed (with p = 0.2) to give a smooth
##' surface of degree days across the UK and this was sampled using
##' the LAD polygons to estimate the heating and cooling degree days
##' in each location.
##'
##' @source Various; see URLs in detail above. Lookup codes from
##' \url{http://www.ons.gov.uk/ons/guide-method/geography/products/names--codes-and-look-ups/names-and-codes-listings/names-and-codes-for-eurostat-geography/index.html}
##' (Eurostat LAU) and
##' \url{http://www.ons.gov.uk/ons/guide-method/geography/products/names--codes-and-look-ups/names-and-codes-listings/names-and-codes-for-administrative-geography/index.html}
##' for UK LADs. Population data from
##' \url{http://www.ons.gov.uk/ons/rel/census/2011-census/population-and-household-estimates-for-the-united-kingdom/}.
##'
##' @note Please be aware that the LAD codes change from time to time
##' and so if you join this data with new data sets, you should
##' manually check that the merge has been successful. Subtle
##' variations in name also exist so beware if merging by \code{name}.
##'
##' @docType data
##' @keywords datasets
##' @name LAD_metadata
##' @format A data frame with 406 rows and 11 columns
NULL
##' Carbon intensity data
##'
##' A data frame giving the carbon intensity of different electricity
##' generating sources including electricity flows from
##' interconnections with other European countries. The values are
##' measured in g CO2/kWh.
##'
##' @source Data come from
##' \url{https://www.gov.uk/government/organisations/department-of-energy-climate-change/series/fuel-mix-disclosure-data-tables},
##' \url{http://www.earth.org.uk/note-on-UK-grid-CO2-intensity-variations.html},
##' and
##' \url{https://www.gov.uk/government/publications/2012-greenhouse-gas-conversion-factors-for-company-reporting}.
##' @docType data
##' @keywords datasets
##' @name carbon_intensities
##' @format A data frame with 13 rows and 2 columns
NULL
##' Scotland geography data
##'
##' Provides a lookup between Scottish districts and their Scottish
##' Executive codes. Used internally to build the
##' \link{get_geo_lookup} table.
##'
##' @docType data
##' @keywords datasets
##' @format a data frame with 3 columns
##' @name scotland_igz
NULL
##' SOA parameters
##'
##' Provides a table of parameters for downloading SOA energy
##' consumption data. Used by \link{get_SOA_data}.
##'
##' @docType data
##' @keywords datasets
##' @format a data frame with 8 columns giving the parameters needed
##' to read the Excel spreadsheets containing the energy data
##' @name params
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.