estpab <- function(vec) {
vec <- round(vec)
m <- length(vec)
freq <- as.data.frame(table(vec))
freq[,2] <- freq[,2]/m
return(freq)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.