Skip to content

Commit

Permalink
Temporarily comment code
Browse files Browse the repository at this point in the history
  • Loading branch information
usr110 committed Sep 19, 2016
1 parent ef72f17 commit e3625ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/data-processing.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ tripMode$Cycled <- NULL

# Comment out trip dataset
# Read trip time
tripTime <- readRDS("data/csv/TripTotalTime1_regional.rds")
# tripTime <- readRDS("data/csv/TripTotalTime1_regional.rds")

# Get row numbers with NA
temp <- data.frame(rn = which( is.na(tripMode$MainMode_Reduced), arr.ind=TRUE))

tripMode$X <- c(1:nrow(tripMode))

tripTime$X <- c(1:nrow(tripTime))
# tripTime$X <- c(1:nrow(tripTime))

# Remove all rows with NA in them
tripMode <- (subset(tripMode, !(X %in% temp$rn) ))

tripTime <- (subset(tripTime, !(X %in% temp$rn) ))
# tripTime <- (subset(tripTime, !(X %in% temp$rn) ))

rm(temp)

Expand Down Expand Up @@ -153,7 +153,7 @@ TripTotalTimeFreq <- function(tripTime, tripMode){

# all possible scenarios - not very elegant way

aaScenarios <- colnames(tripTime)[10:length(colnames(tripTime))-1][c(4,5)]
aaScenarios <- colnames(tripTime)[10:length(colnames(tripTime))-1]

# all possible regions

Expand Down Expand Up @@ -401,7 +401,7 @@ TripTotalTimeFreq <- function(tripTime, tripMode){
}


testTripTotalTimeFreq <- TripTotalTimeFreq(tripTime, tripMode)
# testTripTotalTimeFreq <- TripTotalTimeFreq(tripTime, tripMode)

# rm(tripTime)
# gc()

0 comments on commit e3625ea

Please sign in to comment.