Learn R Programming

backtestGraphics (version 0.1.8)

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)

Value

trade.freq The number that indicates the trading frequency.

Arguments

x

The input data set whose trading period we are interested in