Keeps rows whose columns take given values (filter) and that meet
comparison conditions (where), optionally orders rows by a given order
of one column, and keeps or renames columns.
Arguments
- data
A data frame.
- filter
Named list: column name to the values to keep. Logical values are compared as logical, all others as text.
- where
Conditions, each a list with
column,opand (except foris_na,not_na)value. Operators:<,<=,>,>=,==,!=,in,not_in,is_na,not_na,matches,not_matches(regular expression). Conditions are combined with AND; comparisons with missing values are false.- columns
Columns to keep (all if
NULL).- rename
Named character vector or list, new name to old name.
- order_by
Optional column whose values follow
order.- order
Value order for
order_by; rows with other values are dropped.
See also
Other plot-data builders:
PlotDataBindRows(),
PlotDataConstant(),
PlotDataCount(),
PlotDataCrossShares(),
PlotDataDirection(),
PlotDataDominant(),
PlotDataFromArrays(),
PlotDataJoin(),
PlotDataKeyColours(),
PlotDataLabels(),
PlotDataLonger(),
PlotDataMembership(),
PlotDataPairRatio(),
PlotDataProduct(),
PlotDataQuantiles(),
PlotDataRankRows(),
PlotDataRatio(),
PlotDataRecode(),
PlotDataRelative(),
PlotDataShares(),
PlotDataSummarise(),
PlotDataUnite()