Skip to content

Commit

Permalink
fixed an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
berdikhanova committed Nov 5, 2024
1 parent 96e325d commit 5d280b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trip_dist.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ trips <- trips %>%
rm(pp, zone)
trips <- trips %>%
mutate(gender = factor(gender,
mutate(time_walk = t.distance_walk/2.92,
time_bike = t.distance_bike/10.44,
gender = factor(gender,
levels = c(1,2),
labels = c("Male","Female")),
occupation = factor(occupation,
Expand Down Expand Up @@ -107,8 +109,6 @@ trips <- trips %>%
"Non-home-based-work")),
scenario = factor(scenario, levels = c("Reference",
"Cycling intervention")),
time_walk = t.distance_walk/2.92,
time_bike = t.distance_bike/10.44,
time_pt = as.numeric(time_pt))
################### write out into Parquet file ########################
Expand Down

0 comments on commit 5d280b8

Please sign in to comment.