powered by
percent_change returns the element-wise percent change between two numeric vectors.
percent_change
percent_change(baseline, followup)
A vector of class lvmisc_percent.
lvmisc_percent
A numeric vector with data to compute the percent change.
percent(), {error_pct()}
percent()
{error_pct()}
baseline <- sample(20:40, 10) followup <- baseline * runif(10, min = 0.5, max = 1.5) percent_change(baseline, followup)
Run the code above in your browser using DataLab