#' @noRd
which.max.sec <- function(x) {
if(length(x) == 1) {
return(which.max(x))
} else {
y = sort.int(x, decreasing = TRUE, index.return = TRUE)
return(y$ix[2])
}
}
#' @noRd
max.sec <- function(x) {
if(length(x) == 1) {
return(max(x))
} else {
y = sort(x, decreasing = TRUE)
return(y[2])
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.