percent_change: percent_change

Description Usage Arguments Value Examples

View source: R/percent_change.R

Description

percentage change of a vector from something, typically the first element

Usage

1
percent_change(vec, from = vec[1])

Arguments

vec

An integer or numeric vector

from

An integer or a number

Value

A integer or numeric vector indicating percentage change

Examples

1
percent_change(c(2,1,3), from = 1)

talegari/sidekicks documentation built on Sept. 26, 2018, 4:18 p.m.