Skip to content

Commit

Permalink
Merge pull request #146 from RSGInc/fix_zero_trips
Browse files Browse the repository at this point in the history
Count zero trip days for unweighted data
  • Loading branch information
erika-redding authored Mar 8, 2024
2 parents 0ff8fa1 + ca746ad commit 893da25
Show file tree
Hide file tree
Showing 48 changed files with 123 additions and 120 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: travelSurveyTools
Title: travelSurveyTools
Version: 2.3.6
Version: 2.3.7
Authors@R: c(
person("RSG", "Inc.", , "[email protected]", role = c("aut", "cre")),
person("Ashley", "Asmus", , "[email protected]", role = "aut"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# travelSurveyTools 2.3.6

- Fixing `hts_prep_triprate` to properly calculate days with zero trips.

# travelSurveyTools 2.3.6

- Fixing bug in `hts_prep_triprate` for variables that appear in trip and day tables.

# travelSurveyTools 2.3.5
Expand Down
2 changes: 1 addition & 1 deletion R/hts_prep_triprate.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ if (length(summarize_by) > 0) {
}

if (!weighted) {
triprate_dt = triprate_dt[, .(num_trips = .N),
triprate_dt = triprate_dt[, .(num_trips = sum(!is.na(get(trip_id)))),
by = triprate_cols_all
]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions docs/PULL_REQUEST_TEMPLATE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 19 additions & 21 deletions docs/articles/a01_getting_started.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 893da25

Please sign in to comment.