pq_perf
provides an easy way to create the performance trends for a set of time series data.
pq_perf(dt, date_range = "max", from = NULL, to = Sys.Date(), x = "close|value", base_value = 1)
dt | a list/dataframe of time series dataset |
---|---|
date_range | date range. Available value includes '1m'-'11m', 'ytd', 'max' and '1y'-'ny'. Default is max. |
from | the start date. Default is NULL. If it is NULL, then calculate using date_range and end date. |
to | the end date. Default is the current date. |
x | the name of column to calculate. Default is 'close|value'. |
base_value | the base value of performance index. Default is 0. |
#> 1/2 000001 #> 2/2 ^000001# create performance trends perf = pq_perf(dat) # pq_plot(perf) # }