Skip to content

Commit

Permalink
strsplit -> substr
Browse files Browse the repository at this point in the history
  • Loading branch information
Banana1530 committed Jul 11, 2019
1 parent 1cf0d2b commit 4f71611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/moma_sfpca.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ SFPCA <- R6::R6Class("SFPCA", list(
selection_criterion_lambda_v = 0
)
for (i in 1:4) {
selection_scheme_list[[i]] <- ifelse(strsplit(selection_scheme_str, split = "")[[1]][i] == "g", 0, 1)
selection_scheme_list[[i]] <- ifelse(substr(selection_scheme_str, i, i) == "g", 0, 1)
}
self$selection_scheme_list <- selection_scheme_list

Expand Down

0 comments on commit 4f71611

Please sign in to comment.