Nothing
#' Rounds up or down real numbers depending on the values
#'
#' @keywords internal
#' @noRd
random_integer_from_real <- function (r) {
fraction <- r %% 1
r_stand <- stats::runif(1)
fcase(
fraction == 0,
as.integer(r),
r_stand < fraction,
as.integer(ceiling(r)),
r_stand >= fraction,
as.integer(floor(r))
)
}
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.