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


chuangaocornell/gtx2 documentation built on May 29, 2019, 2:12 p.m.