Change up a test to handle NA scenario and change ifelse statement to handle change correctly
Change up a test to handle NA scenario and change ifelse statement to handle change correctly

zmoore-usgs/repgen,mhines-usgs/repgen,USGS-R/repgen,thongsav-usgs/repgen,mhines-usgs/repgen,dpattermann-usgs/repgen,dpattermann-usgs/repgen,USGS-R/repgen,dpattermann-usgs/repgen,lindsaycarr/repgen,zmoore-usgs/repgen,zmoore-usgs/repgen,mhines-usgs/repgen,USGS-R/repgen,thongsav-usgs/repgen,lindsaycarr/repgen,thongsav-usgs/repgen,lindsaycarr/repgen