Description Usage Arguments Value Examples
This function checks if a value is null and if so, returns NA. This is helpful
when pulling information from lists and formatting to a data.frame
structure
where new rows cannot be NULL.
1 |
x |
object; to be checked if NULL that returns NA if it is NULL |
object
1 2 3 4 5 6 | ## Not run:
sq_null_to_na(3)
sq_null_to_na(NULL)
sq_null_to_na(list(x=1, y=2))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.