-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
sample_n does not work with grouped data #405
Comments
EDIT: sample_frac also fails. I expect 5 registers for each level (5 setosa, 5 versicolor, 5 virginica), but I get a sample of the original data base:
|
Silly question: I see the sample_n.grouped_df methods in sample.R, but they aren't registered in NAMESPACE, so only sample_n.data.frame is being dispatched in 0.2. Simple oversight, or is there a reason they aren't finished yet? |
azvoleff
added a commit
to azvoleff/teamlucc
that referenced
this issue
Jul 2, 2014
krlmlr
pushed a commit
to krlmlr/dplyr
that referenced
this issue
Mar 2, 2016
Export sample_n/frac methods for grouped_df. Closes tidyverse#405.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Dear Sir,
sample_n does not respect the group_by variable. sample_frec works fine.
Best regards
Emilio
The text was updated successfully, but these errors were encountered: