Catch error in add_path because of factor/character confusion
This commit is contained in:
parent
ef56ab792c
commit
c3ae475d71
@ -217,6 +217,9 @@ add_path_subdata <- function(subdata, cutoff) {
|
|||||||
|
|
||||||
subdata_path <- lapply(subdata_moves, check_moves, cutoff = cutoff)
|
subdata_path <- lapply(subdata_moves, check_moves, cutoff = cutoff)
|
||||||
subdata <- dplyr::bind_rows(subdata_path)
|
subdata <- dplyr::bind_rows(subdata_path)
|
||||||
|
if (nrow(subdata) != 0) {
|
||||||
|
subdata$path <- as.factor(subdata$path)
|
||||||
|
}
|
||||||
subdata
|
subdata
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user