I am trying to create a script that will create a truth table based on different values.
Example
The truth table for this would be
I'm fairly new to r. I know it has a lot of great capabilities when it comes to data analysis, but this would help a lot. Was looking at potentially implementing something with sparse matrices, but I don't know.