In my .csv file, I have four columns of numbers defined as follows:
aIN = $item1.IN
aOUT = $item1.OUT
bIN = $item2.IN
bOUT = $item2.OUT
The numbers themselves are a mix of integers and decimals. I am trying to find a total-IN column and a total-OUT column using the follows:
total-IN = aIN + bIN
total-OUT = aOUT + bOUT
Let's say I have...
aIN aOUT bIN bOUT
0.1 0.2 0.3 0.4
1 2 3 4
0.5 0.6 0.7 0.8
5 6 7 8
What I would like is...
aIN aOUT bIN bOUT total-IN total-OUT
0.1 0.2 0.3 0.4 0.4 0.6
1 2 3 4 4 6
0.5 0.6 0.7 0.8 1.2 1.4
5 6 7 8 12 14
My method is not working. Thanks in advance for your help!
total-IN = aIN + bINandtotal-OUT = aOUT + bOUT