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

complete() does not dispatch on a single argument #390

Closed
stefvanbuuren opened this Issue Dec 25, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@stefvanbuuren

stefvanbuuren commented Dec 25, 2017

I would like to define a method mice::compete.mids() that uses the tidyr::complete() for method dispatch. Suppose that imp is a mids object containing the multiply-imputed data. Calling complete(imp) returns "Please supply variables to complete". I wondered whether it would be possible to move the check

if (is_empty(exprs(...))) {
    abort("Please supply variables to complete")
}

to the methods called, so that tidyr::complete() will dispatch on a single argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment