I have this data, the last column is 1 and -1 . I want to multiply each row with coresponding last column element (1 or -1).
col1. col2. col3. col4
3 2 4 1
4 3 8 -1
2 3 4 1
3 4 1 -1
output:
col1. col2. col3. col4
3 2 4 1
-4 -3 -8 -1
2 3 4 1
-3 -4 -1 -1