Skip to content

Commit

Permalink
Update OmicSelector_create_formula.R
Browse files Browse the repository at this point in the history
  • Loading branch information
kstawiski committed Apr 5, 2024
1 parent 3839f46 commit a2058d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/OmicSelector_create_formula.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#'
#' @export
OmicSelector_create_formula = function(selected_features) {
if(selected_features == "." || length(selected_features) ==0 ) { stop("Too few features selected.") }
if(selected_features[1] == "." || length(selected_features) ==0 ) { stop("Too few features selected.") }
selected_features<-selected_features[!is.na(selected_features)]
as.formula(paste0("Class ~ ",paste0(as.character(selected_features), collapse = " + ")))
}

0 comments on commit a2058d6

Please sign in to comment.