modulo | R Documentation |
Applies a modulo operation with a specified base resolution
modulo(x, res = 1, center = TRUE)
x |
Numeric vector to scale. |
res |
Base resolution to scale x to using a modulo operation. |
Scaled vector.
runif(100, 0, 100) %>%
tibble::as_tibble() %>%
dplyr::mutate(mod = modulo(value, 15))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.