ykang / gratis

GRATIS: GeneRAting TIme Series with diverse and controllable characteristics
https://github.com/ykang/gratis
GNU General Public License v3.0
76 stars 29 forks source link

Creating new parameter 'output_format' & Update vignette #30

Closed CharcoalF closed 4 years ago

CharcoalF commented 4 years ago
  1. Add @param output_format An optional argument which allows to choose output format between "list" and "tsibble" in R file.

By setting the parameter output_format, generate_ts(), generate_msts(), generate_ts_with_target() , generate_ts_with_target_ts () now has an option to transform their time series output into a tsibble format. Without setting the parameter, it would keep output as default setting, list format.

  1. importFrom(tsibble,as_tsibble) in Namespace file add tsibble as import package in Description file

  2. To avoid knit problem, change initial knitr option settings in vignette. (i.e. Delete the following codes original <- options("tibble.print_min") options(tibble.print_min = 5) options(tibble.print_min = original))

Then ts data don't have to do with first saving it to a variable x. Instead, they can knit output directly after writing out the function.

  1. Make vignette example clearly to follow by users