Description Usage Arguments Value Note Author(s) See Also
This function will add predefined text to a specified vector. The special aspect is that it will not repeat the text if it exists.
1 2 | badindex_add(data, subset, badstring, badindex = "BADVAL",
override_NA = TRUE, separator = ", ")
|
data |
A data frame containing a column with an index of bad values. |
subset |
Integer. A vector specifying the rows that contain bad values. |
badstring |
Character. Specify the text for indexing (i.e. the names of columns that contain bad values). |
badindex |
Character. Name of a column of the data frame that serves as an index for bad values. |
override_NA |
Logical. Choose TRUE if you want to override NA values. |
separator |
Character. Specify the separator between the text. It is not advisable to use '|'. |
'badindex' column (vector).
The idea behind the function is that you can specify a subset of a data frame and add values to it, without overriding existing values. It is meant to prepare the data frame before calling badvalue_rm.
Frederik Sachser
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.