wouldMatch
The wouldMatch method evaluates each row of an input table according to a user-specified formula and returns the table with an additional column indicating which rows would match the selection criteria.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| expressions | String... | One or more strings, each of which performs an assignment and a truth check. For example:
|
| matchers | WouldMatchPair | A pair of either a column name and a filter, or a column name and a String expression. |
Returns
A new table with an additional Boolean column, with values indicating whether or not each row would match the provided formula's criteria.
Examples
The following example returns a copy of the source table, with an additional column showing which rows match based on whether the value in the Number column is even.
The following example returns a table with a new column that shows whether or not the String values in the Letter column match "B".