#' h-index
#'
#' Calculate h-index.
#'
#' @param x a numeric vector.
#'
#' @return h-index.
#'
#' @export
h.index <- function(x)
{
sortx <- sort(x, decreasing=TRUE)
seqx <- seq_along(x)
length(which(sortx >= seqx))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.