Learn R Programming

extras (version 0.7.3)

proportional_change2: Proportional Change2

Description

Calculates the proportional change for a vector of two non-negative numbers.

Usage

proportional_change2(x)

Value

A number.

Arguments

x

A numeric vector of length 2.

See Also

Other proportional fun2: proportional_difference2()

Examples

Run this code
proportional_change2(c(1, 2))
proportional_change2(c(2, 1))

Run the code above in your browser using DataLab