#' Conditional check for an odd value
#'
#' @description Return TRUE if the value is odd.
#'
#' @eval arg_vector("x","numeric")
#'
#' @return A boolean vector with the return from the condition check.
#' @export
#'
#' @examples
#'
#' is_odd(4)
#'
#' is_odd(3)
#'
is_odd <- function(x){
stopifnot(is.numeric(x))
output <- !relper::is_even(x)
return(output)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.