Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Delete failures in an expression
ResourceFunction["DeleteFailures"][expr] deletes the failure cases in the given expression expr. | |
ResourceFunction["DeleteFailures"][expr,level] deletes the failures in expr at the given level. |
Delete any failures in a list:
In[1]:= |
Out[1]= |
Delete any failures in an association:
In[2]:= |
Out[2]= |
Delete any failures in a nested expression:
In[3]:= |
Out[3]= |
DeleteFailures works with level specifications:
In[4]:= |
Out[4]= |
DeleteFailures can be mapped as well:
In[5]:= |
Out[5]= |
Just like DeleteMissing, DeleteFailures operates on the values of an Association:
In[7]:= |
Out[7]= |
In[8]:= |
Out[8]= |
Using DeleteFailures on a Dataset can create ragged data:
In[9]:= |
Out[9]= |
In[10]:= |
Out[10]= |
Alternatively, use Normal to use the data directly:
In[11]:= |
Out[11]= |
This work is licensed under a Creative Commons Attribution 4.0 International License