#' @rdname tests
#' @export
is_constant <- function( x, na.rm=TRUE ) {
if( all( is.na(x) ) ) return(NA)
if( na.rm )
x <- na.omit(x)
all( x == x[1] )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.