matlab.io.RowFilter
Selectively import rows of interest
Description
A matlab.io.RowFilter
object enables you to specify how
MATLAB® imports tabular data. The object contains properties that control the data
import process by specifying conditions that must be satisfied for rows to be included. You
can create a matlab.io.RowFilter
object by using the
rowfilter
function.
Creation
Description
rf = rowfilter(
filters rows within
your data set using the variables specified in varnames
)varnames
. You can use
the returned matlab.io.RowFilter
object rf
as an
input to parquetread
and parquetDatastore
to filter
data before importing.
Each variable name within the input argument becomes an individual property of the
RowFilter
object. Use tab-completion for efficient access to
available variable names. Use relational operators to express conditions on these
variables to target your rows of interest. These relational operators are supported:
<
, <=
, >
,
>=
, ==
, and ~=
. To express
multiple filtering constraints, combine RowFilter
objects using the
&
, |
, or ~
operators. The
~
operator can also be used with individual constraints.
rf = rowfilter(
uses the variable names
from the info
)VariableNames
property of a ParquetInfo
object.
Input Arguments
Examples
Version History
See Also
parquetinfo
| parquetwrite
| timetable
| table
| parquetDatastore