Closed jakejh closed 2 years ago
Instead of silently excluding empy phecode != '', I think the function should require that hpoPhecodeMap not contain any empty strings or NAs (use assertCharacter). Let's make sure the default map in the package meets those criteria.
phecode != ''
hpoPhecodeMap
assertCharacter
https://github.com/hugheylab/phers/blob/40ba6de11ac9c92f50af939817c054f81a47a710/R/map.R#L149-L150
b3c042b14999384c3e65e4920734d1609dfb0d13
Instead of silently excluding empy
phecode != ''
, I think the function should require thathpoPhecodeMap
not contain any empty strings or NAs (useassertCharacter
). Let's make sure the default map in the package meets those criteria.https://github.com/hugheylab/phers/blob/40ba6de11ac9c92f50af939817c054f81a47a710/R/map.R#L149-L150