Learn R Programming

timeSeries (version 280.75)

finCenter: Financial Center of to a timeSeries

Description

Print or assign new financial center to a timeSeries object.

Usage

## S3 method for class 'timeSeries':
finCenter(x)
## S3 method for class 'timeSeries':
finCenter(x) <- value

Arguments

x
a timeSeries object.
value
a character with the the location of the financial center named as "continent/city".

See Also

listFinCenter

Examples

Run this code
# A timeSeries object
data <- matrix(rnorm(24), ncol = 2)
charvec <- as.character(timeCalendar())
ts <- timeSeries(data, charvec, FinCenter = "NewYork")
ts

# print financial center
finCenter(ts)

# assign new financial center
finCenter(ts) <- "Zurich"
ts

Run the code above in your browser using DataLab