Nothing
#' Auxiliary Internal Functions
#'
#' @rdname n_elecfuns
#' @param x Numeric vector
#'
#' @return The maximum of a vector, after removing non-finite elements
#'
#'
#'
max_ninf <- function(x){
if(any(is.infinite(x))){
if(all(!is.finite(x)) | all(is.na(x))){
return(-Inf)
} else {
return(max(x[-which(is.infinite(x))], na.rm=TRUE))
}
} else {
return(max(x, na.rm=TRUE))
}
}
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.