Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 23, 2023
1 parent a61c2ec commit b08d338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/format_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ format_table <- function(x,
# df for errors
if ("df_error" %in% names(x)) {
x$df_error <- format_value(x$df_error, protect_integers = TRUE)
if (!("df" %in% names(x))) {
names(x)[names(x) == "df_error"] <- "df"
} else {
if ("df" %in% names(x)) {
names(x)[names(x) == "df_error"] <- "df (error)"
} else {
names(x)[names(x) == "df_error"] <- "df"
}
}
# denominator and numerator df
Expand Down

0 comments on commit b08d338

Please sign in to comment.