positivise: Ensure numeric values are positive

Description Usage Arguments Value Author(s)

View source: R/transform.R

Description

Convenience function to convert non-positive values to missing.

Usage

1
positivise(x, strict = FALSE)

Arguments

x

a vector of numeric values

strict

Output must be strictly positive

Value

The vector with negative values replaced by NA. If strict=TRUE, zero values are also replaced by NA.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com


tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.