The mathrrr package includes functions for doing your typical school math, for example:

  • finding prime factors of a number
  • calculating the greatest common factors of a set of numbers
  • converting decimals to fractions
  • parsing fractions into their numeric parts