pchange: Calculate the percent change.

View source: R/NMFSReports.R

pchangeR Documentation

Calculate the percent change.

Description

Calculate the percent change.

Usage

pchange(start, end, ending = "", percent_first = TRUE, value_only = FALSE)

Arguments

start

The value it started with.

end

The value it ended with.

ending

A text string. Default "".

percent_first

Options: T/F. Puts the percent first in the sentance.

value_only

Options: T/F. Will only provide the value, and no text. percent_first is over-ridden.

Examples

pchange(start = 8, end = 1)
pchange(start = 3, end = 6, ending = " in fish landings", percent_first = TRUE)
pchange(start = 3, end = 4, ending = " in fish landings", percent_first = FALSE)
pchange(start = 3, end = 4, ending = " in fish landings", value_only = TRUE)

emilyhmarkowitz/RMarkReports documentation built on March 25, 2023, 4:30 p.m.