R math and money
Calculate a change in temperature, pack boxes, or round a bill.
Everyday arithmetic and rounding
- absIn R, abs returns the magnitude of a number.
- ceilingCount containers for each order
- floorPlace signed readings into unit intervals
- stats::quantileSummarize a sample with missing observations
- maxKeep enough seats for a booking
- minCap a voucher at the total due
- roundDisplay a delivery estimate in minutes
- runifCheck the range of a practice draw
- signShow the direction of a stock change
Powers, roots, and logarithms
- ^Project repeated doubling
- expCheck the baseline of a growth model
- expm1Recover a small percentage increase
- logMeasure the continuous growth needed to double
- log10Count orders of magnitude in a reading
- log1pConvert a small growth rate accurately
- sqrtFind the side of a square garden
Angles and distances
- acosRecover the angle of an awning arm
- asinRecover a ladder angle from its height
- atanTurn a ramp slope into an angle
- atan2Find a direction on a map
- cosFind the horizontal reach of an awning
- coshEstimate the shape of a hanging cable
- sinFind the vertical share of a ladder
- sinhEstimate the slope of a hanging cable
- tanCalculate rise per metre of horizontal run
- tanhSmooth a strong sensor signal