I am working on this;
and have realized I have messed up. I want to change the sampling type to sampling with replacement in matrix 1.
When I try this I get a redefinition error. Is there an easy way to fix this rather than starting again. I get this issue occasionally.