Returns a vector of string(s) that removes common NA strings
found in columns such as TADA.ComparableDataIdentifier. Can also
accommodate handling of certain NA texts found in any general
character string or a vector of strings.
Usage
TADA_CharStringRemoveNA(char_string)
Arguments
- char_string
Character argument. Could be a single string
or vector of strings that contains common "NA" strings
(ex: "(NA", "(NA)", "_NA", etc.)
Value
A vector string that has removed NAs from its value.
Details
This function is meant as an internal function to remove NAs
from figure titles and axis labels for the TADA package.
Examples
# Removes NAs based on each TADA.ComparableDataIdentifier found in a dataset.
data(Data_Nutrients_UT)
UT_Titles <- TADA_CharStringRemoveNA(unique(Data_Nutrients_UT$TADA.ComparableDataIdentifier))