MissingBehavior

MissingBehavior

is an option to Query and related functions that specifies how expressions with head Missing should be interpreted in the context of other functions.

Details

Examples

open allclose all

Basic Examples  (1)

The default behavior of Query operations is to apply special rules:

Use the ordinary behavior of Missing:

Scope  (4)

Statistics functions on list of objects ignore Missing objects by default in Query operations:

They act in the same way on Dataset operations:

Using MissingBehaviorNone makes Missing objects be preserved:

This would be equivalent to direct action of Mean on the list or Dataset object:

Statistics functions on lists of insufficient length return Missing["Indeterminate"]:

Some operations with variable number of arguments ignore Missing objects by default in Query:

They act in the same way on Dataset operations:

Using MissingBehaviorNone makes Missing objects be preserved:

Other operations return Missing["Indeterminate"] by default:

Using MissingBehaviorNone makes Missing objects be preserved:

Structural and extraction operations in Query always preserve Missing objects:

The value of the MissingBehavior option does not affect the result:

Properties & Relations  (2)

Dataset[][f] is equivalent to Query[f][Dataset[]] and uses default settings for MissingBehavior:

Use Query[f,options][Dataset[]] to pass options to the Query operation:

Mathematical Query operations can return Missing["Indeterminate"] by default in invalid cases:

Specify MissingBehaviorNone to change to Failure results:

Wolfram Research (2014), MissingBehavior, Wolfram Language function, https://reference.wolfram.com/language/ref/MissingBehavior.html.

Text

Wolfram Research (2014), MissingBehavior, Wolfram Language function, https://reference.wolfram.com/language/ref/MissingBehavior.html.

CMS

Wolfram Language. 2014. "MissingBehavior." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MissingBehavior.html.

APA

Wolfram Language. (2014). MissingBehavior. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MissingBehavior.html

BibTeX

@misc{reference.wolfram_2024_missingbehavior, author="Wolfram Research", title="{MissingBehavior}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/MissingBehavior.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_missingbehavior, organization={Wolfram Research}, title={MissingBehavior}, year={2014}, url={https://reference.wolfram.com/language/ref/MissingBehavior.html}, note=[Accessed: 22-December-2024 ]}