I did mtcars %>% by_row(sum) but got the message:
mtcars %>% by_row(sum)
by_row() is deprecated; please use a combination of: tidyr::nest(); d
by_row()
Subset of columns is available too.
mtcars %>% mutate(rowsum = rowSums(.[2:4]))