Learn R Programming

timeSeries (version 4041.110)

dummyTimeSeries: Create dummy time series

Description

Create dummy daily and monthly time series for examples and exploration.

Usage

dummyDailySeries(x = rnorm(365), units = NULL, zone = "", 
                 FinCenter = "")

dummyMonthlySeries(...)

Value

a "timeSeries" object

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 default NULL 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

Run this code
dd <- dummyDailySeries()
head(dd)
tail(dd)

dummyMonthlySeries(y = 2022)

Run the code above in your browser using DataLab