TADA_CharStringRemoveNA | R Documentation |
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.
TADA_CharStringRemoveNA(char_string)
char_string |
Character argument. Could be a single string or vector of strings that contains common "NA" strings (ex: "(NA", "(NA)", "_NA", etc.) |
This function is meant as an internal function to remove NAs from figure titles and axis labels for the TADA package.
A vector string that has removed NAs from its value.
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.