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

Error for set_na() #52

Closed
cschwem2er opened this issue Feb 27, 2017 · 1 comment
Closed

Error for set_na() #52

cschwem2er opened this issue Feb 27, 2017 · 1 comment

Comments

@cschwem2er
Copy link

Hi,

I think during the change for the parameter name from value to na something went wrong. Although the parameter is listed as na`in the doc correctly, the following example raises an error:

x <- factor(c("a", "b", "c"))
x
set_na(x, na = "b", as.tag = TRUE)

Error in set_na(x, na = "b", as.tag = TRUE) : 
  argument "value" is missing, with no default
@sjPlot
Copy link
Collaborator

sjPlot commented Feb 27, 2017

Forgot to change this:
https://github.com/sjPlot/sjmisc/blob/master/R/set_na.R#L117

value must be replaced by na in line 117 - will commit tonight.

@sjPlot sjPlot closed this as completed in a9befcf Feb 27, 2017
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