pq_freq {pedquant} | R Documentation |
converting frequency of daily data
Description
pq_freq
convert a daily OHLC dataframe into a specified frequency.
Usage
pq_freq(dt, freq = "monthly", date_type = "eop")
Arguments
dt |
a list/dataframe of time series dataset. |
freq |
the frequency that the input daily data will converted to. It supports weekly, monthly, quarterly and yearly. |
date_type |
the available date type are eop (end of period) and bop (bebinning of period), defaults to the eop. |
Examples
## Not run:
data(dt_ssec)
dat1_weekly = pq_freq(dt_ssec, "weekly")
data(dt_banks)
dat2_weekly = pq_freq(dt_banks, "monthly")
## End(Not run)
[Package pedquant version 0.2.4 Index]