Skip to content

Commit

Permalink
:
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Sep 5, 2024
1 parent 535a64e commit 20aed91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/most_probable_cluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ most_probable_cluster <- function(x, type = "viterbi", hp) {
if (length(unique(state_names)) == length(state_names)) {
idx <- which(hp[, 1] %in% x$state_names[[i]])
} else {
idx <- which(grepl(paste0(x$cluster_names[i], ":"), hp[, 1]))
idx <- which(grepl(paste0(x$cluster_names[i], ": "), hp[, 1]))
}
clusters[idx] <- x$cluster_names[i]
}
Expand Down

0 comments on commit 20aed91

Please sign in to comment.