Learn R Programming

timeSeries (version 3010.97)

finCenter: Get and Set Financial Center of 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

getFinCenter(x)         
setFinCenter(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
## An artificial timeSeries Object - 
   tS <- dummySeries()
   tS

## Print Financial Center -
   finCenter(tS)
   getFinCenter(tS)

## Assign New Financial Center - 
   finCenter(tS) <- "Zurich"
   tS
   setFinCenter(tS) <- "New_York"
   tS

Run the code above in your browser using DataLab