new_zeros: Convert concentrations of zero to non-zero values in a dose...

Description Usage Arguments Value Examples

Description

Selects a small non-zero value to represent zero in a dose range. New value is calculated relative to the smallest non-zero dose based on the dosing interval.

Usage

1
new_zeros(vec, steps = 2, is_log = FALSE)

Arguments

vec

A numeric vector with the concentrations in dose range.

steps

Number of intervals below the smallest non-zero dose.

is_log

Default is 'FALSE'. Are the concentration values in 'vec' log transformed?

Value

A numeric value to represent zero in dose range.

Examples

1
2
3
drc_concs <- c(0, .3, 1, 3, 10, 30, 100)
drc_concs[drc_concs == 0] <- new_zeros(drc_concs)
drc_concs

hemoshear/assayr2 documentation built on Nov. 8, 2019, 6:13 p.m.