I have this dataframe:
test_df <- data.frame(a=c(1:2),b=c(3:4),d=c(5:6))
What I want to do is generate a new dataframe with 2 columns where v1 = a+b and v2 = a+d, so that the dataframe looks like:
| v1 | v2 |
|---|---|
| 4 | 6 |
| 6 | 8 |
I can do this with manually, but what's the purrry way to do it?