Data Filtering - bradmartin333/XferSuite GitHub Wiki
Find this tool in the Advanced Tools menu of XferSuite
Example Usage
IF Pass OPER 0 POW 3
DELETE 27 IN 0
COLS
COLS
prints the header (If available), the column indices and if the column is numerical
COUNT
COUNT
returns the number of active rowsCOUNT 3.14
returns the number of active rows that contain3.14
in at least one columnCOUNT 3.14 IN 2
returns the number of active rows that contain3.14
in column index 2COUNTEX 3.14
returns the number of active rows that contain exactly3.14
in at least one columnCOUNTEX 3.14 IN 2
returns the number of active rows that contain exactly3.14
in column index 2
DELETE
DELETE
removes all active rowsDELETE 3.14
removes active rows that contain3.14
in at least one columnDELETE 3.14 IN 2
removes active rows that contain3.14
in column index 2DELETEEX 3.14
removes active rows that contain exactly3.14
in at least one columnDELETEEX 3.14 IN 2
removes active rows that contain exactly3.14
in column index 2
REPLACE
REPLACE 3.14 999
replaces any appearance of3.14
with999
for active rowsREPLACE 3.14 999 IN 2
replaces any appearance of3.14
with999
in column index 2 for active rowsREPLACEEX 3.14 999
replaces any exact appearance of3.14
with999
for active rowsREPLACEEX 3.14 999 IN 2
replaces any exact appearance of3.14
with999
in column index 2 for active rowsREPLACE ANY 999 IN 2
replaces anything in column index 2 with 999 for active rows (Can only useANY
for specified columns)- Use
NULL
for empty like thisREPLACE ANY NULL IN 2
IF
IF
andIFEX
behaves just like the above commands- When matched by
IF
orIFEX
the row is activates
NOT
NOT
andNOTEX
behaves just likeIF
but inverse
EVAL
EVAL 2 GR 3.14
activates rows where the value in column index 2 is greater than 3.14- Available evaluators are
GR
,LS
,GREQ
,LSEQ
,EQ
,NEQ
OPER
OPER 2 + 3.14
adds 3.12 to the column index 2 for all active rows- Available operators are
ADD
,SUB
,MUL
,DIV
,MOD
,POW
,RND
FIRST
- Deletes all but the first item in the dataset
LAST
- Deletes all but the last item in the dataset
BETWEEN
BETWEEN
deletes all between the first and last items in the datasetBETWEEN 2
deletes all between the second and last items in the datasetBETWEEN 2 4
deletes all between the second and (2+4+1)th item in the dataset (Data = Data.Skip(a).Take(b).ToList()
)
The down arrow clears the entry box and the up arrow loads the last valid command
The following strings are ignored for user convenience: row
, col
, (
, )