Nothing
fShannon <-
function(x, k, n, location){
nx <- length(x)
if (nx==0) stop("No observations)")
if (k=="") stop("k is missing)")
if (n=="") stop("n is missing)")
if (location=="") stop("location is missing)")
h <- aggregate((-1)*(x[[k]] / x[[n]])*log2(x[[k]] / x[[n]]), by=list(Category=x[[location]]), FUN=sum)
names(h) <- c("location", "shannon")
return(h)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.