Skip to content

Corner case error with plyr::count. #290

Description

@adamryczkowski
> 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions