Skip to content

Commit 3d6014b

Browse files
committed
minor
1 parent 5054352 commit 3d6014b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/parameters_table.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#'
2121
#' @importFrom tools toTitleCase
2222
#' @importFrom insight format_value
23+
#' @importFrom stats na.omit
2324
#' @export
2425
parameters_table <- function(x, pretty_names = TRUE, stars = FALSE, ...) {
2526
x <- as.data.frame(x)
@@ -52,7 +53,7 @@ parameters_table <- function(x, pretty_names = TRUE, stars = FALSE, ...) {
5253
ci_colname <- sprintf("%i%% CI", attributes(x)$ci * 100)
5354
}
5455
# Get characters to align the CI
55-
max_len <- max(nchar(na.omit(c(round(x[[ci_low]], 2), round(x[[ci_high]], 2)))))
56+
max_len <- max(nchar(stats::na.omit(c(round(x[[ci_low]], 2), round(x[[ci_high]], 2)))))
5657
for (i in 1:length(ci_colname)) {
5758
x[ci_colname[i]] <- format_ci(x[[ci_low[i]]], x[[ci_high[i]]], ci = NULL, width = max_len, brackets = TRUE)
5859
}

0 commit comments

Comments
 (0)