Skip to content

Commit

Permalink
fixing missing .var
Browse files Browse the repository at this point in the history
  • Loading branch information
Melkiades committed Sep 12, 2022
1 parent d5cf6ae commit e06fcd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/estimate_proportion.R
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ s_proportion <- function(df,
} else if (checkmate::test_subset(method, c("strat_wilson", "strat_wilsonc"))) {
stop("To use stratified methods you need to specify the strata variables.")
}
if (missing(.var)) {
if (checkmate::test_atomic_vector(df)) {
rsp <- as.logical(df)
} else {
rsp <- as.logical(df[[.var]])
Expand Down
3 changes: 2 additions & 1 deletion man/estimate_proportions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e06fcd9

Please sign in to comment.