return0_if_not_null_na {packDAMipd} | R 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)
[Package packDAMipd version 1.1.0 Index]