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

Don't set names on hop() results #75

Closed
DavisVaughan opened this issue Mar 20, 2020 · 1 comment · Fixed by #76
Closed

Don't set names on hop() results #75

DavisVaughan opened this issue Mar 20, 2020 · 1 comment · Fixed by #76

Comments

@DavisVaughan
Copy link
Member

Because the output size varies, so there is not a 1-1 mapping of input names to output size

slider::hop(
  c(x = 1, y = 2, z = 3, f = 4),
  .starts = c(-1, 3),
  .stops  = c(2, 6),
  ~.x
)
#> Error: The size of `names`, 4, must be the same as the size of `x`, 2.

Created on 2020-03-20 by the reprex package (v0.3.0)

@DavisVaughan
Copy link
Member Author

This propagates through to slide_period() as well

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

Successfully merging a pull request may close this issue.

1 participant