[This article was first published on Just Another Data Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
The current release of dplyr (v 0.4.1) offers lot more flexibility regarding usage of important verbs in non-interactive mode. In this post, I’m exploring different possible use-cases.
- group_by_, select_, rename_:
- filter_:
- mutate_, transmute_, summarise_:
- joins:
For 2 table verbs, there’s no *_join_ function and we don’t need one for general purposes. We can just pass a named vector to by argument. setNames function comes in handy while doing this.
The R Code for the above mentioned use cases is shown below and can also be found on this GitHub Gist.
To leave a comment for the author, please follow the link and comment on their blog: Just Another Data Blog.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.