R as the equivalent of Excel's ALBTWIAIOF Q | ScratchStats