add_val_buffer: Add some amount of buffer to a value. Used to calculate the...

Description Usage Arguments Value

View source: R/normalize_counts.R

Description

Add some amount of buffer to a value. Used to calculate the min/max amounts for ylimits

Usage

1
add_val_buffer(val, buffer_pct = 0.01, ceilingBuf = TRUE, asInteger = FALSE)

Arguments

val

A numeric type.

buffer_pct

The proportion of val to add/subtract to/from val.

ceilingBuf

If true, add buffer_pct to val. Otherwise, subtract buffer_pct from val.

asInteger

If true, return the nearest ceiling/floor integer to the buffered value.

Value

A numeric value (v +- buffer_pct * val)


edawson/tidysig documentation built on May 2, 2020, 5:33 a.m.