pew_energy_2018 {openintro} | R Documentation |
Pew Survey on Energy Sources in 2018
Description
US-based survey on support for expanding six different sources of energy, including solar, wind, offshore drilling, hydrolic fracturing ("fracking"), coal, and nuclear.
Usage
pew_energy_2018
Format
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.
Details
We did not have access to individual responses in original dataset, so we took the published percentages and backed out the breakdown
Source
Examples
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)
[Package openintro version 2.5.0 Index]