Created
February 9, 2017 19:27
-
-
Save tvladeck/9ae06907339773c47acac03c34df84fd to your computer and use it in GitHub Desktop.
function to calculate indexations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
indexation <- function(A) | |
{ | |
A / ((rowSums(A)/sum(rowSums(A))) %*% | |
t(colSums(A)/sum(colSums(A))) * | |
sum(A)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment