full <- rbind(c(0, 1, 1, 1),
c(0, 0, 1, 1),
c(0, 0, 0, 1),
c(0, 0, 0, 0))
chain <- rbind(c(0, 1, 0, 0),
c(0, 0, 1, 0),
c(0, 0, 0, 1),
c(0, 0, 0, 0))
identical(oset_aid(full, chain, "from row to column"), c(3/12, 3))
Run the code above in your browser using DataLab