I've been trying to manipulate my data in R to something similar here How to Find False Positive Prediction Count using R Script , but difficult doing it owing to lack of minimal example. My dataframe (called info) is like this:
obs sim no no no no no no no yes yes yes yes yes yes no no no no no no no no no yes yes NA yes no yes yes yes yes yes yes yes
What I would like to obtain is a truth table that drops any row with NA in either column, with the result as follows:
obs sim
yes no
yes 6 2
no 1 7