-
Notifications
You must be signed in to change notification settings - Fork 1
/
s251_data_update.R
48 lines (28 loc) · 1.02 KB
/
s251_data_update.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Section 251 Data Merge
library(tidyverse)
library(readxl)
library(janitor)
# read in data
s251_2011 <- read_xls("data/Section251_outturns/s251ye2011.xls", skip = 3) %>%
clean_names()
s251_2012 <- read_xlsx("data/Section251_outturns/s251ye2012.xlsx", skip = 3) %>%
clean_names()
s251_2013 <- read_xlsx("data/Section251_outturns/s251ye2013.xlsx", skip = 3) %>%
clean_names()
s251_2014 <- readODS::read_ods("data/Section251_outturns/s251ye2014.ods") %>%
as_tibble() %>%
clean_names()
s251_2015 <- read_xlsx("data/Section251_outturns/s251ye2015.xlsx") %>%
clean_names()
s251_2016 <- read_xlsx("data/Section251_outturns/s251ye2016.xlsx") %>%
clean_names()
s251_2017 <- read_xlsx("data/Section251_outturns/s251ye2017.xlsx") %>%
clean_names()
s251_2018 <- read_xlsx("data/Section251_outturns/s251ye2018.xlsx") %>%
clean_names()
s251_2019 <- read_xlsx("data/Section251_outturns/s251ye2019.xlsx") %>%
clean_names()
# Make sure LA keys work
# try to match all categories
# Merge different years
# Add denominators