Create dummy time series
fin-dummy.Rd
Create dummy daily and monthly time series for examples and exploration.
Usage
dummyDailySeries(x = rnorm(365), units = NULL, zone = "",
FinCenter = "")
dummyMonthlySeries(...)
Arguments
- x
an object of class
timeSeries
.- units
-
an optional character string, which allows to overwrite the current column names of a
timeSeries
object. By defaultNULL
which means that the column names are selected automatically. - FinCenter
-
a character with the the location of the financial center named as
"continent/city"
. - zone
the time zone or financial center where the data were recorded.
- ...
optional arguments passed to
timeSeries
.
Details
dummyDailySeries
creates a timeSeries
object with
dummy daily dates from a numeric matrix with daily records of
unknown dates.
dummyMonthlySeries
creates a dummy monthly "timeSeries"
object.
Examples
dd <- dummyDailySeries()
head(dd)
#> GMT
#> X1
#> 1970-01-01 0.03533135
#> 1970-01-02 0.42314888
#> 1970-01-03 0.20222884
#> 1970-01-04 1.57620746
#> 1970-01-05 -0.46904286
#> 1970-01-06 0.37957991
tail(dd)
#> GMT
#> X1
#> 1970-12-26 -0.2569257
#> 1970-12-27 0.2426579
#> 1970-12-28 0.1709353
#> 1970-12-29 0.4034617
#> 1970-12-30 1.1048684
#> 1970-12-31 -1.3096252
dummyMonthlySeries(y = 2022)
#> GMT
#> TS.1 TS.2
#> 2024-01-01 0.256204173 0.8121176
#> 2024-02-01 0.881703379 0.9931157
#> 2024-03-01 0.816621071 0.1822492
#> 2024-04-01 0.904131538 0.8045545
#> 2024-05-01 0.306723651 0.5473774
#> 2024-06-01 0.470001841 0.5935642
#> 2024-07-01 0.923688679 0.3782178
#> 2024-08-01 0.585954685 0.2984592
#> 2024-09-01 0.002343502 0.5675508
#> 2024-10-01 0.363293023 0.2742155
#> 2024-11-01 0.803557717 0.7835054
#> 2024-12-01 0.468704748 0.5305348