Closed christophertull closed 8 years ago
When Skip==TRUE for all rows, thendplyr::filter(distances, Skip==FALSE)returns an empty dataframe. This caused the assignment
Skip==TRUE
dplyr::filter(distances, Skip==FALSE)
distances$MatchingStartDate <- min(dates)
to throw the following error:
Error in `$<-.data.frame`(`*tmp*`, "MatchingStartDate", value = Inf) : replacement has 1 row, data has 0
Moving the date assignment above the filtering line should avoid this error.
I was so eager to submit my first pull request I should have tested some first ;)
When
Skip==TRUE
for all rows, thendplyr::filter(distances, Skip==FALSE)
returns an empty dataframe. This caused the assignmentdistances$MatchingStartDate <- min(dates)
to throw the following error:
Moving the date assignment above the filtering line should avoid this error.