How do I apply a function to every element of a data frame where that function takes as input the i,j indices of the element along with its value?
This is a problem I struggled on for weeks in college. Eventually having to hack something together that relied on modifying the underlying data frame.
I've not return to R since as python has always had better libraries and easier to deploy.