View source: R/coerce_NA_text.R
coerce_NA_text | R Documentation |
This function is designed to convert textual NAs to true NA values. It can operate on vectors, data frames, data frame like objects (e.g. tibbles), or matrices. It returns an object of the same class. The values that will be coerced to NAs can be provided as a character vector.
coerce_NA_text(
x, NA_values = c("NA", "na", "N/A", "n/a", "", "."),
add_NA_values, verbose = FALSE)
x |
vector, matrix, or data frame containing the data to be coerced |
NA_values |
character vector, the values to be coerced to NAs. |
add_NA_values |
character vector, additional values (beyond |
verbose |
logical, whether to output information on data being coerced; if |
An object of the same type as the input data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.