CreateDerivedMetadata {MacrobondAPI}R Documentation

Create a new derived metadata object

Description

Create a new Metadata object that inherits all properties from another 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

CreateDerivedMetadata(metadata)

Arguments

metadata

A Metadata object to inherit from.

See Also

CreateEmptyMetadata, Metadata

Examples

	metaBase <- CreateEmptyMetadata()
	addMetadataValue(metaBase, "Currency", "eur")

	metaUs <- CreateDerivedMetadata(metaBase)
	addMetadataValue(metaUs, "Region", "us")
	
	metaGb <- CreateDerivedMetadata(metaBase)
	addMetadataValue(metaGb, "Region", "gb")

[Package MacrobondAPI version 1.1-5 Index]