In my data let say I have two vectors:
column1 column2
40.0000 1.2000
41.0000 1.2000
42.0000 1.2000
43.0000 1.2000
44.0000 1.2000
45.0000 1.2000
46.0000 1.2000
47.0000 1.2000
48.0000 1.2000
49.0000 1.2000
50.0000 1.2000
where column1
is temperature and column2
is flow rate.
What I want is to identify what is the sum of the flow rate for conditions when the temperature is greater than 45 degrees Celsius. i.e. in the above example sum flow rates in column2
only with condition when the temperature in column1
is greater than 45 degrees Celsius.
How can I do this?