Re:An opinionated view of the Tidyverse “dialect” of the R l...
by notafraudster on Monday July 08, 2019 @11:46PM
(#20388864)
I agree that an alternative way to do this would be to mutate an ID column (maybe row number), then gather, then summarize, except that this of course will throw away all the rest of the data, so not great if all you want to do is add a column. Hence, I normally map rows or use base R.
[ Parent
| on HN ]
There are no comments on this comment yet.