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

hotdeck() does not work when column names start with a number #19

Closed
paulponcet opened this issue Oct 25, 2017 · 0 comments
Closed

hotdeck() does not work when column names start with a number #19

paulponcet opened this issue Oct 25, 2017 · 0 comments
Labels

Comments

@paulponcet
Copy link
Contributor

The following code:

df = data.frame(Id = 1:3, x = c(NA, 0.2, 0.3))
names(df) = c("Id", "1x")
VIM::hotdeck(df)

gives an error:

Error in `[.data.frame`(data.frame(x), , VariableSorting, drop = FALSE) : undefined columns selected
paulponcet added a commit to paulponcet/VIM that referenced this issue Oct 25, 2017
Change 'data.frame' into 'as.data.frame' at the end of the 'hotdeck' function.
alexkowa added a commit that referenced this issue Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants