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

View source: R/help_cost_analysis_functions.R

return0_if_not_null_naR Documentation

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

Description

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

Usage

return0_if_not_null_na(param)

Arguments

param

the form of medication either tablet or patch

Value

zero or -1

Examples

parame = NULL
ans <- return0_if_not_null_na(parame)
parame = 1
ans <- return0_if_not_null_na(parame)

packDAMipd documentation built on May 29, 2024, 3:18 a.m.