transform_shipments: Modify the shipments data.

Description Usage Arguments Details Value Examples

View source: R/transform_shipments.R

Description

Does some calculations involving Profit per shipment and adds them to the shipments data file. Some minor changes are also done.

Usage

1
transform_shipments(products, shipments)

Arguments

products

Data frame, from the products_in_shipments.rds file

shipments

Data frame, from the shipments.rds file

Details

Modifies/ Cleans:

Adds:

Value

Returns the shipments data (a data frame) with the aforementioned modifications.

Examples

1
2
3
products <- readRDS('./Data/Main_data/products_in_shipments.rds')
shipments <- readRDS('./Data/Main_data/shipments.rds')
transformed_shipments_data <- transform_shipments(products, shipments)

shahreyar-abeer/nadinewestr documentation built on May 27, 2019, 1:06 a.m.