RemoveNonNumeric - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Statistics

  

SelectNonNumeric

  

select non-numeric values

  

RemoveNonNumeric

  

remove non-numeric values

 

Calling Sequence

Parameters

Description

Options

Examples

Calling Sequence

SelectNonNumeric(X, options)

RemoveNonNumeric(X, options)

Parameters

X

-

data sample

options

-

(optional) equation of the form exclude=value

Description

• 

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 evalfX 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.

Options

  

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.

Examples

withStatistics:

AArray3,3,1,a,b,a,π,sin1,undefined,

A331abaπsin1undefined

(1)

RemoveNonNumericA

331πsin1

(2)

SelectNonNumericA,exclude=undefined

aba

(3)

RemoveNonNumericA,exclude=undefined

331πsin1undefined

(4)

SelectNonNumericA

abaundefined

(5)

BArray1,2,3,4,undefined,,datatype=float8

B1.2.3.4.FloatundefinedFloat

(6)

RemoveNonNumericB

1.2.3.4.

(7)

RemoveNonNumericB,exclude=

1.2.3.4.Float

(8)

See Also

Statistics

Statistics[Computation]

Statistics[Remove]

Statistics[RemoveInRange]

Statistics[Select]

Statistics[SelectInRange]