TADA_CharStringRemoveNA: Remove NAs in Strings for Figure Titles and Axis Labels

View source: R/Utilities.R

TADA_CharStringRemoveNAR Documentation

Remove NAs in Strings for Figure Titles and Axis Labels

Description

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.)

Details

This function is meant as an internal function to remove NAs from figure titles and axis labels for the TADA package.

Value

A vector string that has removed NAs from its value.

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))

USEPA/TADA documentation built on April 12, 2025, 1:47 p.m.