Skip to content

Commit 869d2ae

Browse files
committed
use intersect()
1 parent 3c4d3d3 commit 869d2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/format_p_adjust.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ format_p_adjust <- function(method) {
191191
ci_level <- 0.95
192192
}
193193
# find degrees of freedom column, if available
194-
df_column <- colnames(params)[stats::na.omit(match(c("df", "df_error"), colnames(params)))][1]
194+
df_column <- intersect(c("df", "df_error"), colnames(params))[1]
195195
if (is.na(df_column)) {
196196
return(params)
197197
}

0 commit comments

Comments
 (0)