1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
\name{wealth}
\alias{index2wealth}
\title{Conversion of an index to wealth}
\description{
Converts an index series to a wealth series normalizing the starting
value to one.
}
\usage{
index2wealth(x)
}
\arguments{
\item{x}{
an object of class 'timeSeries'.
}
}
\value{
returns a time series object of the same class as the input
argument \code{x} normalizing the starting value to one.
}
\seealso{
\code{\link{returns}},
\code{\link{cumulated}},
\code{\link{drawdowns}},
\code{\link{splits}},
\code{\link{spreads}},
\code{\link{midquotes}},
%\code{\link{index2wealth}}
}
\examples{
## Load MSFT Open Prices -
INDEX <- MSFT[1:20, 1]
INDEX
## Compute Wealth Normalized to 100 -
100 * index2wealth(INDEX)
}
\keyword{chron}
|