#'@export
polarization <- function(majority,lminority,popsize,data){
return(concentration(lminority,popsize,data)>=.2 &
(data[,lminority]>=(data[,popsize]-data[,majority]-data[,lminority])*2)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.