"influence"<-function(mip,X, col,row, write.xlsx=FALSE, name="Field_of_Influence.xlsx"){
B<-as.matrix(leontief.inv(mip,X,FALSE))
temp<-matrix(B[,col])%*%B[row,]
if(write.xlsx==TRUE) write.xlsx2(temp, file=name, sheetName="Sheet1", showNA=TRUE)
temp
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.