LukasWallrich / timesaveR

R package to quickly perform data analysis and reporting tasks that might otherwise be time intensive
https://lukaswallrich.github.io/timesaveR
GNU General Public License v3.0
5 stars 1 forks source link

Singular variables break cor_matrix_mi #1

Closed LukasWallrich closed 1 month ago

LukasWallrich commented 2 years ago

The following fails with uninformative error - take check from make_scales() and remove singular variables with warning/message.

 df <- tibble(.imp = rep(1, 10), a = 1:10, b = rep(10, 10))
cor_matrix_mi(df)