Skip to content

Commit ae465b9

Browse files
committed
2nd fix #23
1 parent f5db635 commit ae465b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/bisg.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ make_name_tbl_vec <- function(vars, p_r, p_rs, for_me=FALSE) {
268268
cli_abort("{.arg p_rs} contains missing, negative,
269269
or otherwise invalid values.", call=parent.frame())
270270
}
271-
if (!identical(p_r, "estimate") && length(p_r) != ncol(p_rs) - 1) {
271+
if (!identical(p_r, "estimate") && length(p_r) != ncol(p_rs)) {
272272
cli_abort("Number of racial categories in {.arg p_rs}
273273
and {.arg p_r} must match.", call=parent.frame())
274274
}

0 commit comments

Comments
 (0)