Statistics[Select] - select data items satisfying a condition
Statistics[Remove] - remove data items satisfying a condition
|
Calling Sequence
|
|
Select(func, X)
Remove(func, X)
|
|
Parameters
|
|
func
|
-
|
boolean-valued procedure
|
X
|
-
|
data sample
|
options
|
-
|
(optional) extra arguments to func
|
|
|
|
|
Description
|
|
•
|
The Select function selects the items data[i] for which returns true, and creates a new data sample with the same options as X. Those items for which func does not return true are discarded in the newly created data sample.
|
•
|
The first parameter func must be a boolean valued procedure.
|
•
|
The second parameter X is a data sample which must given as an Array or a list.
|
•
|
The Remove function does the opposite of Select. It removes the data items of X which satisfy func and creates a new data set.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
|
|
Download Help Document
Was this information helpful?