Learn R Programming

backtestGraphics (version 0.1.6)

trade_freq: Find Trading Frequency

Description

This helper function looks for the trading frequency of the input data set. It can identify daily, weekly, monthly or yearly trading frequency in the data set.

Usage

trade_freq(x)

Arguments

x
The input data set whose trading period we are interested in

Value

trade.freq The number that indicates the trading frequency.