2021-10-21 / Vincent Guyader / data, tidyverse, tips
Row-wise operations with the {tidyverse}
We are often asked how to perform row-wise operations in a data.frame (or a tibble) the answer is, as usual, “it depends” 🙂 Let’s look at some cases that should fit your needs. library(tidyverse) Let’s make an example dataset: base <- tibble::tibble( a = 1:10, b = 1:10, c = 21:30 ) %>% head() base ## # A tibble: 6 ...