readProducts: Read products from file

Description Usage Arguments Value

Description

Function runs a validation of a supplied file containing products and throws an error if it was not successfull. If the file format was correct then the 'SpecialPrice' column is split into two seperate columns named 'DiscountItemCount' (amount of items required to apply a special price) and DiscountPrice (new price which can be applied if enough items are bought).

Usage

1
readProducts(file = "products.csv")

Arguments

file

path to the file with products list

Value

Function returns a data.frame with products read from file if the validation was successfull.


komisarczyks/CheckoutComponent documentation built on May 20, 2019, 12:55 p.m.