percent_of: Function to calculate the value of a percentage of another...

View source: R/percentage_change.R

percent_ofR Documentation

Function to calculate the value of a percentage of another value.

Description

Function to calculate the value of a percentage of another value.

Usage

percent_of(value, percent)

Arguments

value

Numeric vector of values.

percent

Percentage of value to calculate. percent is not a decimal, i.e. five percent is represented by 5.

Value

Numeric vector with length of value.

Author(s)

Stuart K. Grange

Examples


# Five percent of 33864
percent_of(33864, 5)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.