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

Make spread_values(.x, ...) work more like dplyr::mutate(.data, ...) #133

Open
ramiromagno opened this issue Jan 8, 2021 · 0 comments
Open

Comments

@ramiromagno
Copy link
Contributor

ramiromagno commented Jan 8, 2021

It would be nice if ... (the name-value pairs) in spread_values() would work like in dplyr::mutate(). By this I mean being able to write code like:

tbl_json %>%
spread_values(
      mean = jnumber(mean),
      counts = as.integer(jnumber(counts))
)

i.e, specify computations immediately inline such as as.integer().

@ramiromagno ramiromagno changed the title Make spread_values(.x, ...) work like dplyr::mutate(.data, ...) Make spread_values(.x, ...) work more like dplyr::mutate(.data, ...) Jan 8, 2021
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