How to find sum of a specific part of a table. I know for a full column, i can just use sum(X[, 'expenditure']), but I want to sum expenditures for only January month. I am using imported data from a csv file. I am encouraged to use sum or colSums.
The data is too big to show, but you can visualise it. Here is a sample:
Month Expenditure
Jan. 20
Jan. 28
March. 50
March. 54
July. 07