Getting rid of a warning in `correlation()`
IndrajeetPatil opened this issue · 3 comments
IndrajeetPatil commented
Warning: No column names that matched the required search pattern were found.
Reprex:
library(correlation)
correlation(BOD, standardize_names = TRUE)
#> Warning: No column names that matched the required search pattern were found.
#> # Correlation Matrix (pearson-method)
#>
#> Parameter1 | Parameter2 | r | 95% CI | t(4) | p
#> -------------------------------------------------------------
#> Time | demand | 0.80 | [-0.02, 0.98] | 2.70 | 0.054
#>
#> p-value adjustment method: Holm (1979)
#> Observations: 6
Created on 2022-04-29 by the reprex package (v2.0.1)
IndrajeetPatil commented
@strengejacke Any ideas? I thought data_find()
is a drop-in replacement for data_findcols()
, so a bit surprised by these new warnings.
strengejacke commented
We increased verbosity, so just setting verbose to FALSE should work.
strengejacke commented
I think we should also set the regex
argument to TRUE
, because we use a regular expression here