I am very new at R and am struggling to create a matrix. My educational goal is to create a variance-covariance matrix for further analysis. I created a custom function and