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

generate() chokes when factor levels are integers? #30

Closed
beanumber opened this issue Jul 19, 2017 · 2 comments
Closed

generate() chokes when factor levels are integers? #30

beanumber opened this issue Jul 19, 2017 · 2 comments

Comments

@beanumber
Copy link
Contributor

mtcars %>%
   specify(response = am) %>%
   hypothesize(null = "point", p = c("0" = 0.25, "1" = 0.75)) %>%
   generate(reps = 100, type = "simulate")

 Error in sample.int(length(x), size, replace, prob) : 
  invalid first argument 
@beanumber
Copy link
Contributor Author

Nevermind.

beanumber added a commit to beanumber/infer that referenced this issue Jul 19, 2017
@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant