tibble
How can I convert above tibble into following output matrix?
(how I can split PT then Pessary put the value 172 in to the position (2,1) and also for the rest value?)
(Note Pessary then Pessary = 809 can be added to Pessary = 6238, In ouput it should be 6238+809 not 6238, same for all others)