Hi everyone
I have a numeric output from the market basket affinity tool and would like to set the bottom part of the matrix as 0s. Can someone please help me understand what I am doing wrong in my R code?
Here are screenshots of my code and the one cell output, and also an example of what the data looks like before the R code:

The top select is for the Rownames and the bottom select for the numeric output of the dataframe.

Thank you
Rouche