View source: R/percent_change.R
percent_change | R Documentation |
percent_change
returns the element-wise percent change between two
numeric vectors.
percent_change(baseline, followup)
baseline, followup |
A numeric vector with data to compute the percent change. |
A vector of class lvmisc_percent
.
percent()
,
{error_pct()}
baseline <- sample(20:40, 10)
followup <- baseline * runif(10, min = 0.5, max = 1.5)
percent_change(baseline, followup)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.