CreateEmptyMetadata {MacrobondAPI}R Documentation

Create an empty set of metadata

Description

Create a new empty Metadata object. The content can be changed until it is used in a series. After the metadata object is populated, it is usually passed to CreateTimeSeriesObject.

Usage

CreateEmptyMetadata()

See Also

CreateDerivedMetadata, CreateTimeSeriesObject, Metadata

Examples

	meta <- CreateEmptyMetadata()
	addMetadataValue(meta, "Currency", "usd")
	seriesNew = CreateTimeSeriesObject("ih:mb:priv:s1", "My forecast", "us", "Forecasts", TimeSeriesFrequency[["Monthly"]], as.Date("1990-01-01"), c(12.2, 12.7, 12.8, 13.0), metadata = meta)
	UploadOneOrMoreTimeSeries(seriesNew)

[Package MacrobondAPI version 1.1-5 Index]