HOW TO CALCULATE RATIOS IN R WITH EXAMPLES