#Compute the current value of the stringy scagnostic for a set of points
getStringy <- function(Ind){
RS <- rowSums(Ind)
V1 <- length(which(RS == 1))
V2 <- length(which(RS == 2))
V <- nrow(Ind)
CurrentStringy <- (V2/(V-V1))^3
return(list(CS=CurrentStringy,RS=RS))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.