Skip to content
Snippets Groups Projects
Commit f4400cd0 authored by Bartke, Simon's avatar Bartke, Simon
Browse files

Added raw-data, parsing script and resulting .rda

parent ccd4920a
No related branches found
No related tags found
No related merge requests found
^rdatapacktest\.Rproj$
^\.Rproj\.user$
^data-raw$
......@@ -10,3 +10,6 @@ License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Depends:
R (>= 2.10)
LazyData: true
Entity,Code,Year,Deaths per TWh of electricity production
Biomass,,2021,4.63
Brown coal,,2021,32.72
Coal,,2021,24.62
Gas,,2021,2.821
Hydropower,,2021,1.3
Nuclear,,2021,0.03
Oil,,2021,18.43
Solar,,2021,0.019
Wind,,2021,0.035
\ No newline at end of file
## code to prepare death_by_energy dataset goes here
# Rohdaten als .csv in dataframe einlesen aus Ordner data-raw
death_by_energy <- read.csv("death-rates-from-energy-production-per-twh.csv", header = TRUE, sep = ",", dec = ".")
# Spalte, die aus NA's besteht löschen
death_by_energy <- subset(death_by_energy, select = -c(Code))
# Ggf. andere Arbeitsschritte, feature creation, etc.
# Sollte letzte Zeile sein, speichert Daten als .rda im Ordner data
usethis::use_data(death_by_energy, overwrite = TRUE)
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment