I'm trying to conditionally find the average of column 1/column2 based on T/F values in col3 and col 4. I have 1000 rows of data so I was wondering in R had a way to all of them.
kg ha condition 1 condition 2
2 1 True True
3 0.5 True False
4 1 False True
5 0.5 False False
I'm VERY new to R so I'd appreciate if you could use the data set I provided so I can follow along more easily. Thank you so much!