IsAtLeastNARatio: A function to check if the ratio of NA in a vector is over a...

Description Usage Arguments Value Examples

Description

A function to check if the ratio of NA in a vector is over a threshold.

Usage

1
IsAtLeastNARatio(vect, min.ratio, verbose = TRUE)

Arguments

vect

A vector to analyse

min.ratio

A threshold ratio of NA values in vect (from 0 to 1)

verbose

Logical. If TRUE (default), report status of the process along the executions

Value

Logical. TRUE if the ratio of NA in vect is at least minRatio, else FALSE.

Examples

1
2
3
4
5
6
## Not run: 
vector.true  <- c(NA, 1:3) 
vector.false <- c(NA, 1:5) 
IsAtLeastNARatio(vector.true, 0.2)

## End(Not run)

laurentlab-mpipz/rsurvival documentation built on May 29, 2019, 9:14 a.m.