total_price: Calculates the price of an order of electronics.

Description Usage Arguments Value

View source: R/total_price.R

Description

Calculates the price of an order of electronics.

Usage

1
total_price(order, currency = "EUR")

Arguments

order

is data frame of electronic products. Products have prices in different currencies.

currency

Currency of interest.

Value

Sum of all products’ prices from the given order, after applying a discount.


svalvaro/terribleCode documentation built on Feb. 2, 2022, 5:18 p.m.