pct_change | R Documentation |
Calculate the percent change between two values or vectors of values
pct_change(start, final, perc = FALSE)
start |
A value or vector of values |
final |
A value or vector of values |
perc |
A logical indicating whether or not to format the value with a percent symbol |
tibble::tibble(
start = seq(0.1, 1.1, 0.1),
final = sample(seq(0.1, 1, 0.1), 11, replace = TRUE)
) %>%
dplyr::mutate(pct_diff = pct_change(start, final))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.