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

Create a enter_array verb #30

Open
jeremystan opened this issue Apr 4, 2015 · 1 comment
Open

Create a enter_array verb #30

jeremystan opened this issue Apr 4, 2015 · 1 comment

Comments

@jeremystan
Copy link

I often find myself doing this:

... %>% enter_object("array") %>% gather_array %>% ...

Create a function, enter_array, that combines the two steps into one. The interface should be similar to gather_array, with the exception that there is an extra argument that specifies the key name for the array object, and the array.index should default to just paste "index" onto that name.

Thus, the above code becomes:

... %>% enter_array("array") %>%  ...
@jeremystan
Copy link
Author

Not so sure about this anymore, enter_array would need to take both the key name to find the array, and the column name to create, which is probably confusing. Perhaps best to leave this as is.

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