Skip to contents

Function to calculate percentage change from first observation in vector

Usage

pct_norm(x)

Arguments

x

Numeric vector

Value

Numeric vector

Examples

library(dplyr)
x <- 1:5
pct_norm(x)
#> [1] 0 1 2 3 4