R/price_complete.R
price_complete.Rd
Interpolate prices for a specific product within a given date range.
price_complete(product_id, date_min = NULL, date_max = NULL)
product_id | A product ID. |
---|---|
date_min | The minimum date for the interpolation range as a character string in the format "YYYY-mm-dd". Defaults to the minimum date available for the specified product ID. |
date_max | The maximum date for the interpolation range as a character string in the format "YYYY-mm-dd". Defaults to the maximum date available for the specified product ID. |
Interpolated prices for the specified (or default) date range as a data.frame
.
# Interpolate prices for a specific product within a given date range. if (FALSE) { price_complete(product_id = 1, date_min = "2020-01-01", date_max = "2020-12-31") }