Ltrinv<-function(x,V,d=TRUE){ Y = matrix(0,ncol = V,nrow = V); Y[upper.tri(Y,d)]=x;return(Y + t(Y) -d*diag(diag(Y))) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.