Skip to content

Commit

Permalink
Merge branch 'master' of github.com:melmasri/traveltimeHMM
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad committed Nov 26, 2020
2 parents a6bdd49 + 8f41135 commit cbb373e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/traveltimeHMM.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ traveltimeHMM <- function(logspeeds = NULL, trips = NULL, timeBins = NULL, linkI
# SECTION B - Data preparation

# Convert 'trips' and 'linkIds' to factors if required
if (!is.factor(trips))
trips = factor(trips)
if (!is.factor(linkIds))
linkIds = factor(linkIds)
#if (!is.factor(trips))
trips = factor(trips)
#if (!is.factor(linkIds))
linkIds = factor(linkIds)

nB <- length(unique(timeBins)) # time bins
nQ2 <- nQ^2 # Compute nQ2, the square of nQ, which will be used often
Expand Down

0 comments on commit cbb373e

Please sign in to comment.