percent_change: Computes the percent change

Description Usage Arguments Value See Also Examples

View source: R/percent_change.R

Description

percent_change returns the element-wise percent change between two numeric vectors.

Usage

1
percent_change(baseline, followup)

Arguments

baseline, followup

A numeric vector with data to compute the percent change.

Value

A vector of class lvmisc_percent.

See Also

percent(), {error_pct()}

Examples

1
2
3
4
baseline <- sample(20:40, 10)
followup <- baseline * runif(10, min = 0.5, max = 1.5)

percent_change(baseline, followup)

lvmisc documentation built on April 5, 2021, 5:06 p.m.