return0_if_not_null_na: Function to return 0 if the param is not null or NA trimming...

Description Usage Arguments Value Examples

Description

Function to return 0 if the param is not null or NA trimming the white spaces

Usage

1

Arguments

param

the form of medication either tablet or patch

Value

zero or -1

Examples

1
2
3
4
parame = NULL
ans <- return0_if_not_null_na(parame)
parame = 1
ans <- return0_if_not_null_na(parame)

sheejamk/DecisionAnalysisModel documentation built on March 10, 2021, 7:21 p.m.