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

logic in hypothesize() #12

Closed
beanumber opened this issue Jun 27, 2017 · 2 comments
Closed

logic in hypothesize() #12

beanumber opened this issue Jun 27, 2017 · 2 comments

Comments

@beanumber
Copy link
Contributor

Note:

> mtcars %>% 
    select(cyl) %>%
    hypothesize(null = "point", p1 = .25, p2 = .25, p3 = .50)

Error in hypothesize(., null = "point", p1 = 0.25, p2 = 0.25, p3 = 0.5) : 
  The number of parameters exceeds the number of columns. 

The code is checking to see whether the number of parameters is greater than the number of columns in the matrix. But here we want to check whether it is the same as the number of factor levels in the one variable. Does it create a problem anywhere else if I change this?

@andrewpbray
Copy link
Collaborator

andrewpbray commented Jun 27, 2017

Whoops, yeah, that was a poorly thought-through error message. Feel free to correct it; it shouldn't break anything else.

@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

2 participants