splitBill: Takes orders as a vector, total price after tax/delivery/tip

Description Usage Arguments Examples

Description

Takes orders as a vector, total price after tax/delivery/tip

Usage

1
splitBill(orders, total, names = NULL)

Arguments

orders

Vector of orders as numerics, sums are allowed.

total

Total for the order, after all fees.

names

Optional vector of names for pretty output

Examples

1
2
splitBill(c(3.30, 1.90, 3.80, 8.25 + 1.90, 10.25),
35.36, names = c("Malcolm", "Russell", "Yandi", "Johnny", "Bryan"))

bryandmartin/WSC documentation built on May 14, 2019, 3:06 a.m.