merge_null_to_na | R Documentation |
A helper function to convert NULL values in API responses to a value of NA which is allowed in data frames. Oftentimes, a NULL value creates issues when binding and building data frames from parsed output, so we need to switch to NA.
merge_null_to_na(x)
x |
a value, typically a single element or a list to switch to NA if its value appears to be NULL. |
the original value of parameter x
or NA
if the value
meets the criteria to be considered NULL.
This function is meant to be used internally. Only use when debugging.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.