Skip to content

Commit

Permalink
fix: solved small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanderaa committed Oct 24, 2023
1 parent 74f6f77 commit 6ec3da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ScpModel-Workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ scpModelWorkflow <- function(object, formula,
}

.computeModelEffect <- function(beta, x, effect) {
sel <- grepl(paste0("^", effect, "\\d*"), names(beta))
sel <- grep(paste0("^", effect, "\\d*"), names(beta))
if (!length(sel)){
rown <- rownames(x)
return(structure(rep(NA, length(rown)), names = rown))
Expand Down

0 comments on commit 6ec3da8

Please # to comment.