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

mice doesn't handle complex variable names #630

Closed
Ralayax opened this issue Mar 26, 2024 · 0 comments · Fixed by #631
Closed

mice doesn't handle complex variable names #630

Ralayax opened this issue Mar 26, 2024 · 0 comments · Fixed by #631
Labels

Comments

@Ralayax
Copy link
Contributor

Ralayax commented Mar 26, 2024

Describe the bug
mice doesn't handle complex variable names (like variables with spaces or other strange characters)

To Reproduce

library(tidyverse)
library(mice)

mice::boys |>
  rename(`whooooo 151""1512` = tv) |>
  mutate(`this is a 'terrible varname....a` = 0) |> 
  mice::mice()

Expected behavior
Should do multiple imputations

Additional context
I will create a pull request adding backticks to variables inside the mice formulas to fix the issue

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

Successfully merging a pull request may close this issue.

1 participant