Reduce Columns
Reduce worksheet by merging or deleting columns
Minimum Origin Version Required: 9.1 SR0
1. wreducecols method:=merge ncols:=2 merge:=ave start:=3; //From the third column, every two columns merge their data points into the average of them.
2. wreducecols start:=2 end:=9 ow:=[<new>]<new>; //Specify the starting column and end column to delete, and output the result in a new book new sheet.
3. wreducecols -r 1 method:=mergeByLabels labelName:="Long Name" merge:=sum end:=4 ow:=<new>;
Please refer to the page for additional option switches when accessing the x-function from script
Input
Worksheet
int
Option list:
string
Output
This X-Function is used to delete columns or merge columns with specified statistics data.
wreducerows, reducerows, wdelrows
Keywords:data reduction