timeSeries_generate: timeSeries_generate

Description Usage Arguments Details Value

View source: R/timeSeries_generate.R

Description

generate Time series for regional and bnf data

Usage

1
2
3
4
5
6
7
timeSeries_generate(
  from = "mm/yyyy",
  to = "mm/yyyy",
  settings = NULL,
  on = c("BOTH"),
  save = TRUE
)

Arguments

from

start date in the format "mm-yyyy"

to

end date in the format "mm-yyyy"

settings

analysis settings generated with setConfig()

on

one of "REGION", "BNF" and "BOTH" indicating which ts to produce, default = "BOTH"

save

logic, if TRUE, an external file will be saved in rootdir. Default = TRUE

Details

The function summaries plpd or bnf data on ITEMS, NIC, ACT.COST, QUANTITY and REGION and generates TS over the period of time indicated trought the from and to arguments

Value

The function returns a data.table with time series data for the selected period, as generated, in the time range selected, via generateSummaries()


muschitiello/PrescRiptions documentation built on June 12, 2020, 10:38 a.m.