dplyr 1.0.0: working within rows
Hadley Wickham - 2020-04-10
This post is the latest in a series of post leading up the the dplyr 1.0.0 release. So far, the series has covered:
- Major lifecycle changes.
- New
summarise()features. -
select(),rename(),relocate(). - Working
across()columns.
Today, I wanted to talk a little bit about the renewed rowwise() function that makes it easy to perform operations “row-by-row”. I’ll show how you can use rowwise() to compute summaries “by row”, talk about how rowwise() is a natural pairing with list-columns, and show a couple of use cases that I think are particularly elegant. You can learn more about all of these topics in vignette("rowwise") .
Read more at dplyr 1.0.0: working within rows