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

Corner case error with plyr::count. #290

Open
adamryczkowski opened this issue May 22, 2018 · 0 comments
Open

Corner case error with plyr::count. #290

adamryczkowski opened this issue May 22, 2018 · 0 comments

Comments

@adamryczkowski
Copy link

> df<-data.frame(a=rep(1:3,5),freq=0)
> plyr::count(df)
Using freq as weighting variable
  a freq freq.1
1 1    0      0
2 2    0      0
3 3    0      0

I expected the output:

  a freq freq.1
1 1    0      5
2 2    0      5
3 3    0      5

freq shouldn't be assumed as a weighting variable.

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

1 participant