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

Error using volume field as grouping field #36

Open
dkyleward opened this issue Apr 11, 2017 · 0 comments
Open

Error using volume field as grouping field #36

dkyleward opened this issue Apr 11, 2017 · 0 comments

Comments

@dkyleward
Copy link
Contributor

Initially, I tried to call link_stats_table as shown below. I used ToTDlyVol for both the volume and group_field variable.

link_stats <- link_stats_table(
  tbl, volume = "ToTDlyVol", count = "Daily.Counts", group_field = "ToTDlyVol",
  type = "flow"
  )

This led to the following error message:

Error in summarise_impl(.data, dots) : ‘sum’ not meaningful for factors

To correct this, I made a copy of the ToTDlyVol field to use as the grouping variable.

link_stats <- link_stats_table(
  tbl, volume = "ToTDlyVol", count = "Daily.Counts", group_field = "vol_group",
  type = "flow"
  )

It would be nice to improve the function to be able to use the same field for both variables.

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

No branches or pull requests

1 participant