nelson.io.RowFilter
Object that stores a row filter expression.
📝Syntax
rf = rowfilter(names)
expr = rf.VariableName operator value
T = expr.apply(T)
📥Input Arguments
Parameter Description
names variable names specified as a string array or cell array of character vectors.
T a table or timetable.
📤Output Arguments
Parameter Description
rf a nelson.io.RowFilter object.
expr a nelson.io.RowFilter object containing a filter expression.
📄Description

nelson.io.RowFilter stores the variable names and expression used to select rows.

Variable names are accessed with dot notation. Relational and logical operators create a filter expression. The expression is evaluated when apply is called or when the object is used as a RowFilter argument for Parquet reading functions.

The variables method returns the names referenced by the expression.

💡Examples
T = table([1; 2; 3; 4], [10; 20; 30; 40], ...
  'VariableNames', {'Id', 'Value'});
rf = rowfilter({'Id', 'Value'});
expr = rf.Id > 1 & rf.Value <= 30;
expr.variables()
R = expr.apply(T)
🔗See Also
rowfilterparquetread
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub