Here\'s the situation, one whose solution seemed to be simple at first, but that has turned out to be more complicated than I expected.
I have an R data frame with th