Reputation: 11
I have a number of records with no meaning. Would like to discard from row 1 to 20 for example. What is the expression to input in the Select-->Discard Node? Or any other node to suggest?
Thank you in advance!! image attached
Upvotes: 1
Views: 1088
Reputation: 426
The Select
node is the correct node to use for this.
IBM SPSS Modeler has a built-in function that returns the row number - @INDEX
- and you can, therefore, use the Select
node in the "Include" mode along with the condition:
@INDEX > 20
This will discard the first 20 rows of data from your data set.
Upvotes: 1