Learn R Programming

Lock5withR (version 1.2.2)

SandP500: S \& P 500 Prices

Description

Daily data for S\& P 500 Stock Index

Arguments

Format

A data frame with 252 observations on the following 6 variables.
  • Date Date as a character string
  • MDY Date as a date object
  • Open Opening value
  • High High point for the day
  • Low Low point for the day
  • Close Closing value
  • Volume Shares traded (in millions)

Details

Daily prices for the S\& P 500 Stock Index for trading days in 2010.

Examples

Run this code

data(SandP500)
if (require(lattice)) {
  xyplot( High + Low ~ Date, data=SandP500, type="l", 
    main="S and P 500",
    auto.key=list(lines=TRUE, points=FALSE))
 }

Run the code above in your browser using DataLab