Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Sep 23, 2024
1 parent bc57af3 commit 7aa5170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/create_base_nhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ create_base_nhmm <- function(observations, data, time, id, n_states,
if (is.null(state_names)) {
state_names <- paste("State", seq_len(n_states))
if (mixture) {
state_names <- replicate(n_cluster, state_names, simplify = FALSE)
state_names <- replicate(n_clusters, state_names, simplify = FALSE)
names(state_names) <- cluster_names
}
} else {
Expand All @@ -44,7 +44,7 @@ create_base_nhmm <- function(observations, data, time, id, n_states,
)
)
if (names_is_vec) {
state_names <- rep(n_cluster, state_names, simplify = FALSE)
state_names <- replicate(n_clusters, state_names, simplify = FALSE)
} else {
lapply(seq_len(n_states), function(i) {
stopifnot_(
Expand Down

0 comments on commit 7aa5170

Please sign in to comment.