I have a table which I want to show aggregate . It’s pretty straightforward when it’s sum. I can use janitor to show total . But in my case I want to calculate rates.how can that be done.
Language Files Overall
1 C++ 4009 15328
2 Java 210 876
3 Python 35 200
Now if I want to add a new column rate which is files/ overall how can I calculate the rate for total row . It should be sum of files by sum of overall . I am unable to figure out how to do that for the total row field. Expected output
Files LOC Rate
C++ 4009 15328 40.0
Java 210 876 23.3
Python 35 200 17.5
Total 4254 16404 25.93