Mathematica 9 is now available

DropNonNumeric

DropNonNumeric[list] drops non-numeric elements from list.

DropNonNumeric will drop all rows that contain non-numeric data.
• Example: DropNonNumeric[{{1, 2}, {2, m}, {3, 4}}] LongRightArrow

.
• To drop a nonnumeric column from a matrix, first use
Transpose[matrix] to convert the columns into rows.
• See also:
ColumnDrop, Drop, Transpose.

Examples

Using InstantCalculators

Here is the InstantCalculator for the DropNonNumeric function. Enter the parameters for your calculation and click Calculate to see the result.

Entering Commands Directly

You can paste a template for this command via the Text Input button on the DropNonNumeric Function Controller.

This defines a 4 Cross 4 matrix called data1.

DropNonNumeric removes the two non-numeric rows of data1.

This defines a 6 Cross 3 matrix called data2.

Each row has nonnumeric elements, so DropNonNumeric returns an empty list.

DropNonNumeric leaves the numeric row of the transposed data2 matrix.

Clear the variable definitions.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.