Learn R Programming

timeSeries (version 4021.104)

finCenter: Get and Set Financial Center of a 'timeSeries'

Description

Print or assign new financial center to a 'timeSeries' object.

Usage

getFinCenter(x)         
setFinCenter(x) <- value

# S4 method for timeSeries finCenter(x) # S4 method for 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
## 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