How to get proportion in R by comparing columns?

We need a reproducible example (reprex)