pew_energy_2018 | R Documentation |
US-based survey on support for expanding six different sources of energy, including solar, wind, offshore drilling, hydrolic fracturing ("fracking"), coal, and nuclear.
pew_energy_2018
The format is: List of 6 $ solar_panel_farms : List of responses on solar farms. $ wind_turbine_farms : List of responses on wind turbine farms. $ offshore_drilling : List of responses on offshore drilling. $ hydrolic_fracturing : List of responses on hydrolic fracturing. $ coal_mining : List of responses on coal mining. $ nuclear_power_plants: List of responses on nuclear.
We did not have access to individual responses in original data set, so we took the published percentages and backed out the breakdown
data(pew_energy_2018) lapply(pew_energy_2018, head) lapply(pew_energy_2018, length) lapply(pew_energy_2018, table) Prop <- function(x) { table(x) / length(x) } lapply(pew_energy_2018, Prop)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.