I have this dataframe and I want to cross-compare all the values inside this data frame.

```
dat <- tibble::tibble(
name = c("a","b","c"),
value = c(1,2,3))

```

I want to compare all the row pairs inside this dataframe and in this case I want to divide the smaller number by the bigger number.

The final dataframe should look like this:

```
a,b,0.5
a,c,0.33
b,c,0.66

```

Is there a method to achieve this?