products {PriceIndices} | R Documentation |
This function detects and summarises available, matched, new as well as disappearing products on the basis of their prodIDs.
products(data, start, end)
data |
The user's data frame with information about sold products. It must contain columns: |
start |
The base period (as character) limited to the year and month, e.g. "2020-03". |
end |
The research period (as character) limited to the year and month, e.g. "2020-04". |
This function detects and summarises available, matched, new and disappearing products on the basis of their prodIDs. It compares products from the base period (start
) with products from the current period (end
). It returns a list containing the following objects: details
with prodIDs of available, matched, new and disappearing products, statistics
with basic statistics for them and figure
with a pie chart describing a contribution of matched, new and disappearing products in a set of available products.
list<-products(milk, "2018-12","2019-12")
list$details
list$statistics
list$figure