pq_to_freq convert a daily OHLC dataframe into a specified frequency.
pq_to_freq
pq_to_freq(dt, freq, print_step = 1L)
a list/dataframe of time series dataset.
the frequency that the input daily data will converted to. It supports weekly, monthly, quarterly and yearly.
A non-negative integer. Print symbol name by each print_step iteration. Default is 1L.
# NOT RUN { dts = md_stock(c("^000001", "000001"), date_range = 'max', source = '163') dts_weekly = pq_to_freq(dts, "weekly") # } # NOT RUN { # }
Run the code above in your browser using DataLab