I am VERY new to R so please forgive if this is a stupid question. I am attempting a pretty basic calculation to count the total of rows on certain conditions and grouping them by year. I created a data frame in order to organize this and create a plot, but two values show up for each year - one if the condition is true and one if it is false. This includes columns with boolean values that I have attempted to use as a filter - with and without quotations marks around TRUE.
The columns with the boolean values are the full names for the conditions within the filter function, which is why it looks so weird. But despite re-running the entire code, the correct values are still not filtered. The plot that came out of the bottom code was predictably useless.
I have also tried filtering within the plot to no avail. It doesn't help that the number that count as TRUE seem too low. Any idea what the issue could be and what I could be missing?