inst/extdata/hydropower.R

hydropower <- read.csv("inst/extdata/hydropower.csv", 
                       stringsAsFactors = FALSE, strip.white = TRUE)
hydropower <- cbind.data.frame(hydropower, address = paste0(hydropower$Waterway, ', ', hydropower$State))
hydropower <- with(hydropower, data.frame(hydropower, t(sapply(hydropower$address, RgoogleMaps::getGeoCode))))
save(hydropower, file = "data/hydropower.rda")

Try the energyr package in your browser

Any scripts or data that you put into this service are public.

energyr documentation built on May 2, 2019, 6:36 a.m.