R/fun_zero.R

Defines functions fun_zero

Documented in fun_zero

#' Divide function without 0/0 errors
#'
#' This function attempts to divide without 0/0 errors.
#'
#' @param a,b Integers
#' @return a divided by b
fun_zero <- function(a, b)ifelse(b == 0, 0, a / b)
# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
## usethis namespace: end
NULL

Try the MicroSEC package in your browser

Any scripts or data that you put into this service are public.

MicroSEC documentation built on Sept. 11, 2024, 6:06 p.m.