Skip to content
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

rownames error in codebook_missingness #20

Closed
stefvanbuuren opened this issue May 18, 2018 · 3 comments
Closed

rownames error in codebook_missingness #20

stefvanbuuren opened this issue May 18, 2018 · 3 comments

Comments

@stefvanbuuren
Copy link

In codebook 0.5.8 using the dev version of mice I get:

library(codebook)
data("bfi")
codebook_missingness(bfi)
Error in `rownames<-`(`*tmp*`, value = table(pat)) : 
  attempt to set 'rownames' on an object with no dimensions

Could you check?

@rubenarslan
Copy link
Owner

I get the same error with

mice::md.pattern(mtcars)

So I think it's unrelated to my post-processing in codebook_missingness.

@stefvanbuuren
Copy link
Author

In mice 3.0.0 the statement mice::md.pattern(mtcars) works. However, mice::md.pattern(bfi) still fails. I found out that this is a different issue, apparently caused by one column that is entirely NA in the bfi data. We will repair this.

@stefvanbuuren
Copy link
Author

Repaired in mice 3.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants