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