fin-wealth: Conversion of an index to wealth

Description Usage Arguments Value Examples

Description

Converts an index series to a wealth series normalizing the starting value to one.

Usage

1

Arguments

x

an object of class 'timeSeries'.

Value

returns a time series object of the same class as the input argument x normalizing the starting value to one.

Examples

1
2
3
4
5
6
## Load MSFT Open Prices  - 
   INDEX <- MSFT[1:20, 1]
   INDEX
   
## Compute Wealth Normalized to 100 - 
   100 * index2wealth(INDEX)

timeSeries documentation built on May 21, 2017, 12:28 a.m.

Search within the timeSeries package
Search all R packages, documentation and source code