-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve verify_data
function
#138
base: main
Are you sure you want to change the base?
Conversation
Automatically parse allowed data types rather than manual specification. Additional checks if data are of type `matrix` are left in.
R/utils.R
Outdated
call. = FALSE | ||
) | ||
} | ||
if (is.matrix(data)) { | ||
if (dim(data)[1] != dim(data)[2]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is actually a bug in ggmice
, because mice
does accept non-square predictor matrices
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So line 54 is not correct
I believe that a better solution would be https://rlang.r-lib.org/reference/arg_match.html |
Maybe using
|
Edit preprocessing function for checking data. Add (and implement) preprocessing function for extracting variable names.
Should also resolve #130 |
Status check: might not be necessary anymore. Converting to draft. |
Automatically parse allowed data types rather than manual specification. Additional checks if data are of type
matrix
are left in. Should resolve #85