replace_null | R Documentation |
This function provides a simple way to replace NULLs. It's will be most useful in conjunction with purrr functions when working with lists
replace_null(x, replacement = NA_character_)
x |
element to (potentially) replace |
replacement |
replacement for NULL. Default is NA_character_ |
## Not run: a <- NULL replace_null(a) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.