sum_ratio: Compute the ratio of two sums.

Description Usage Arguments Value

View source: R/utils.R

Description

Compute the ratio between the sum of 'top' and the sum of 'bottom'.

Usage

1
sum_ratio(top, bottom, na.rm = TRUE)

Arguments

top

numeric vector. Its sum will be the nominator of the ratio

bottom

numeric vector. Its sum will be the denominator of the ratio

na.rm

logical. Should missing values be omited?

Value

A single numeric value corresponding to the ratio of the sum of 'top' and the sum of 'bottom'


IvanHeriver/hsa-R-package documentation built on Dec. 17, 2021, 11:32 p.m.