DeleteMissing

DeleteMissing[list]

drops elements with head Missing from a list.

DeleteMissing[assoc]

drops elements whose values have head Missing from the association assoc.

DeleteMissing[expr,n]

applies DeleteMissing to any lists or associations that occur within the first n levels of expr.

DeleteMissing[expr,n,d]

considers an element at level n to be missing if Missing occurs within the first d levels of the element.

Details

Examples

open all close all

Basic Examples  (2)

Delete missing elements in a list:

In[1]:=
Click for copyable input
Out[1]=

Delete missing values from an association:

In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Properties & Relations  (2)

Possible Issues  (1)

Introduced in 2014
(10.0)
|
Updated in 2015
(10.1)