Statistics
SelectNonNumeric
select non-numeric values
RemoveNonNumeric
remove non-numeric values
Calling Sequence
Parameters
Description
Options
Examples
SelectNonNumeric(X, options)
RemoveNonNumeric(X, options)
X
-
data sample
options
(optional) equation of the form exclude=value
The SelectNonNumeric function selects non-numeric items from X and returns them in a new data sample. Note, that an expression X is considered non-numeric if evalf⁡X does not return a floating-point number. Numeric items are discarded in the newly created data sample.
The first parameter X is a data sample - given as e.g. a Vector.
The RemoveNonNumeric function does the opposite of SelectNonNumeric. It removes the non-numeric values from X.
The options argument can contain one or more of the options shown below.
exclude=infinity, undefined, or [infinity, undefined] -- By default, undefined and infinity are considered non-numeric. This can be changed by adding infinity or undefined or both to the exclude list. Thus, exclude=undefined means that infinity should still be considered numeric but undefined should not.
with⁡Statistics:
A≔Array⁡3,3,1,a,b,a,π,sin⁡1,undefined,∞
A≔331abaπsin⁡1undefined∞
RemoveNonNumeric⁡A
331πsin⁡1
SelectNonNumeric⁡A,exclude=undefined
aba∞
RemoveNonNumeric⁡A,exclude=undefined
331πsin⁡1undefined
SelectNonNumeric⁡A
abaundefined∞
B≔Array⁡1,2,3,4,undefined,∞,datatype=float8
B≔1.2.3.4.Float⁡undefinedFloat⁡∞
RemoveNonNumeric⁡B
1.2.3.4.
RemoveNonNumeric⁡B,exclude=∞
1.2.3.4.Float⁡∞
See Also
Statistics[Computation]
Statistics[Remove]
Statistics[RemoveInRange]
Statistics[Select]
Statistics[SelectInRange]
Download Help Document