Dynamic Pricing Model In R