Skip to content

Commit df940c7

Browse files
committed
Attempt to add remaining tabs
1 parent 5cd86f3 commit df940c7

15 files changed

Lines changed: 115 additions & 376 deletions

app/data-processing.R

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ yllReduction <- readRDS("data/csv/yll_reduction.rds")
3030

3131

3232
# #Read Car Miles data
33-
# carMiles <- read.csv("data/csv/carMiles_var1.csv", header = T, as.is = T)
34-
# carMiles[is.na(carMiles)] <- 0
35-
#
36-
# milesCycled <- read.csv("data/csv/milesCycled.pers_var1.csv", header = T, as.is = T)
37-
# milesCycled[is.na(milesCycled)] <- 0
33+
carMiles <- readRDS("data/csv/carMiles_regional.rds")
34+
carMiles[is.na(carMiles)] <- 0
35+
36+
milesCycled <- readRDS("data/csv/milesCycled.pers_regional.rds")
37+
milesCycled[is.na(milesCycled)] <- 0
3838

3939
# #Read Trip data
4040
#tripData <- read.csv("data/csv/tripsdf.csv", header = T, as.is = T)
@@ -65,17 +65,17 @@ tripMode$Cycled <- NULL
6565

6666

6767

68-
# # Read trip time
69-
# tripTime <- read.csv("data/csv/triptime1.csv", header = T, as.is = T)
70-
#
71-
# # Get row numbers with NA
72-
# temp <- data.frame(rn = which( is.na(tripMode$MainMode_Reduced), arr.ind=TRUE))
73-
#
74-
# # Remove all rows with NA in them
75-
# tripMode <- (subset(tripMode, !(X %in% temp$rn) ))
76-
#
77-
# tripTime <- (subset(tripTime, !(X %in% temp$rn) ))
78-
#
68+
# Read trip time
69+
tripTime <- readRDS("data/csv/TripTotalTime1_regional.rds")
70+
71+
# Get row numbers with NA
72+
temp <- data.frame(rn = which( is.na(tripMode$MainMode_Reduced), arr.ind=TRUE))
73+
74+
# Remove all rows with NA in them
75+
tripMode <- (subset(tripMode, !(X %in% temp$rn) ))
76+
77+
tripTime <- (subset(tripTime, !(X %in% temp$rn) ))
78+
7979
# # # "Walk", "Bicycle", "Ebike", "Car Driver", "Car Passenger", "Bus", "Train", "Other"
8080
# # # Reduce the number of modes to 4
8181
# # # walk, bicycle, car, others
@@ -88,7 +88,7 @@ tripMode$Cycled <- NULL
8888
#
8989
#
9090
#
91-
# names(tripMode)[names(tripMode)=="MainMode_Reduced"] <- "baseline"
91+
names(tripMode)[names(tripMode)=="MainMode_Reduced"] <- "baseline"
9292

9393
#Read CO2 data
9494
# co2data <- read.csv("data/csv/co2.csv", header = T, as.is = T)

app/data/csv/ICT_aggr_regional.csv

Lines changed: 0 additions & 262 deletions
This file was deleted.

app/data/csv/ICT_aggr_regional.rds

79 Bytes
Binary file not shown.
13.3 MB
Binary file not shown.

app/data/csv/carMiles_regional.rds

14.6 MB
Binary file not shown.

app/data/csv/co2.rds

20 MB
Binary file not shown.

app/data/csv/deaths.rds

-428 Bytes
Binary file not shown.

app/data/csv/deaths_reduction.rds

-237 Bytes
Binary file not shown.
8.17 MB
Binary file not shown.

app/data/csv/mmets_regional.rds

20 MB
Binary file not shown.

0 commit comments

Comments
 (0)