Skip to content

Commit

Permalink
is.numeric could never occur; !grepl not !grep (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
HughParsonage authored and leeper committed Jan 22, 2019
1 parent de56121 commit 548943c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/confint.R
Expand Up @@ -8,8 +8,8 @@ function(object, parm, level = 0.95, ...) {
parm <- pnames
} else if (is.numeric(parm)) {
parm <- pnames[parm]
} else if (is.numeric(parm)) {
parm[!grep("^_", parm)] <- paste0("_", parm[!grep("^_", parm)])
} else if (is.character(parm)) {
parm[!grepl("^_", parm)] <- paste0("_", parm[!grepl("^_", parm)])
}
cf <- colMeans(mes, na.rm = TRUE)[parm]
a <- (1 - level)/2
Expand Down

0 comments on commit 548943c

Please sign in to comment.