Skip to contents

Calculates daily log returns from the adjusted closing price column produced by get_stock_prices(). Validates input and handles edge cases.

Usage

get_stock_returns(prices)

Arguments

prices

A tibble returned by get_stock_prices().

Value

A tibble with columns symbol, date, daily_return.