calc_margin: Calculate Margin

Description Usage Arguments Value

View source: R/calculate.R

Description

This function calculates the margin, or relative size, of a value compared to another while ensuring there are no adverse results such as NA, NAN, or Inf. It also attempts to avoid the issue of returning infinitely small, non-zero, values by rounding each value to two decimals first.

Usage

1

Arguments

x

numeric value, or vector

y

numeric value, or vector

Value

numeric value, or vector


cadenceinc/yolanda documentation built on Sept. 15, 2020, 5:20 a.m.