price_complete: Interpolate prices for a specific product within a given date...

View source: R/price_complete.R

price_completeR Documentation

Interpolate prices for a specific product within a given date range.

Description

Interpolate prices for a specific product within a given date range.

Usage

price_complete(product_id, date_min = NULL, date_max = NULL)

Arguments

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.

Value

Interpolated prices for the specified (or default) date range as a data.frame.

Examples

# Interpolate prices for a specific product within a given date range.
## Not run: 
price_complete(product_id = 1, date_min = "2020-01-01", date_max = "2020-12-31")

## End(Not run)

datawookie/trundler documentation built on Dec. 31, 2022, 6:20 p.m.