I know that the topic doesn\'t describe what I want to do, but belive it\'s hard to explain in just one senetece. I have a data frame in the form shown below: