RowNumColumn Process
This example shows the usage of RowNumColumn process
name | income |
John |
$50,000 |
Marry |
$60,000 |
Peter |
$100,000 |
Donald |
$80,000 |
->pipe(new RowNumColumn("RowNumCol1"))
->pipe(new RowNumColumn(array(
"RowNumCol2", "RowNumCol3"
), 1))
name | income | RowNumCol1 | RowNumCol2 | RowNumCol3 |
John |
$50,000 |
0 |
1 |
1 |
Marry |
$60,000 |
1 |
2 |
2 |
Peter |
$100,000 |
2 |
3 |
3 |
Donald |
$80,000 |
3 |
4 |
4 |
The example demonstrates usage of `RowNumColumn` process, which create one or multiple columns with row ordered number
__Add one rownum column__
```
->pipe(new RowNumColumn("RowNumCol1"))
```
__Add multiple rownum columns__
```
->pipe(new RowNumColumn(array(
"RowNumCol2", "RowNumCol3"
), 1))
```
__Set starting rownum number__
```
->pipe(new RowNumColumn("RowNumCol1"), 0)
->pipe(new RowNumColumn(array(
"RowNumCol2", "RowNumCol3"
), 1))
```