Change all NA values (missing vlaues) in a column to zero

NA_to_zero(dat, column, return = "df")

Arguments

dat

dataframe of USGS BBS data containing NAs that should be replaced with zeros

column

column within dataframe containing NAs that should be converted to a dataframe

return

"df" or "column"; whether to return the whole dataframe (deafault) or just the column