This may have been asked before, but I couldn't find it. I have a data set and created a frequency table based on the data frame. I
It looks like this:
outcome N
1 3 70
2 1 8000
3 4 212
4 2 78
So lets say I want to add 8000 and 78 (outcomes 1 and 2). Is there a way to add/subtract these values from this frequency table?
You can do it like this. library(tidyverse)
Result