Given the species abbreviation Neotoma albigula (NA), when data are read in, there can be an NA
when it should be an "NA"
. This function conforms the entries to be proper character values.
na_conformer(dfv, colname = "species")
Either [1] a data.frame
containing colname
as a column with NA
s that need to be conformed to "NA"
s or [2] a vector with NA
s that need to be conformed to "NA"
s.
character
value of the column name in tab
to conform the NA
s to "NA"
s.
x
with any NA
in colname
replaced with "NA"
.
na_conformer(c("a", "b", NA, "c"))