Learn R Programming

quantspec (version 1.0-0)

data-sp500: S&P 500: Standard and Poor's 500 stock index, 2007--2010

Description

Contains the returns of the S&P 500 stock index for the years 2007--2010. The returns were computed as (Adjusted.Close-Open)/Open.

Arguments

format

A univariate time series with 1008 observations; a zoo object

Details

The data was downloaded from the Yahoo! Finance Website.

References

Yahoo! Finance Website http://finance.yahoo.com/q/hp?s=^GSPC+Historical+Prices

Examples

Run this code
plot(sp500)

Run the code above in your browser using DataLab