Here is my dataframe

```
df = structure(list(A1 = c("0.01", "0.01", "0.01", "0.01", "0.01", 
"0.01"), A2 = c("0.01", "0.18", "0.31", "0.06", "1.71", "0.01"
), B1 = c("0.62", "3.68", "9.68", "1.70", "0.02", "0.01"), B2 = c("20.00", 
"20.00", "20.00", "20.00", "0.02", "20"), C1 = c("0.02", "5", 
"0.16", "0.01", "0.03", "0.01"), C2 = c("20.00", "20.00", "20.00", 
"20.00", "20.00", "20.00"), Min = c(0.02, 0.02, 0.02, 0.02, 0.02, 
0.02), Max = c(0.24, 0.24, 0.24, 0.24, 0.24, 0.24)), .Names = c("A1", 
"A2", "B1", "B2", "C1", "C2", "Min", "Max"), row.names = c(NA, 
6L), class = "data.frame")

```

* `A1`-`A2` defines first range
* `B1`-`B2` defines second range
* `C1`-`C2` defines third range
* `Min`-`Max` defines the main range

I need to compare `A1-A2`, `B1-B2`, `C1-C2` together against `Min-Max`.
If there is a hole, then assign 0. If there is no hole assign 1.

For example in the second row, between 0.18 and 0.24 (`Max` for 2nd row), neither `A1-A2`, `B1-B2`, or `C1-C2` overlap with `Min-Max`. Therefore assign 0. I would also like to extract 0.18 and 0.24 if possible. For all other rows assign 1. The values can be extracted to a vector or a new column.

Here's a figure to explain what I mean by hole in the range.

[![enter image description here](https://i.stack.imgur.com/wOEKw.png)](https://i.stack.imgur.com/wOEKw.png)

`A2 >= A1`, `B2 >= B1`, `C2 >= C1`, and `Max >= Min` is always `TRUE`