Description Usage Arguments Examples
If a list contains NULL values, calling unlist on it will create a vector-like object that loses the index/indices containing NULL. If one-to-one mappings are required, this results in information mismatch.
1 | x_if_null(NULLlist, x = 0, cores = 1)
|
x |
The value that NULL is to be replaced with - defaults to 0. |
cores |
If the function is to be parallelised, enter the number of cores here. Defaults to one. |
list |
The list object that may or may not contain NULL values. |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.