amices / ggmice

Visualize incomplete and imputed data with the R package `ggmice`

Home Page:http://amices.org/ggmice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More efficient code using `rlang::inherits_any()`

pepijnvink opened this issue · comments

E.g. instead of
if(is.matrix(x) | is.data.frame(x){ }
use
if(inherits_any(x, c("matrix", "DataFrame"))){ }

Use this in #138