Learn R Programming

UsingR (version 2.0-7)

maydow: Dow Jones industrial average and May maximum temperature

Description

A data set of both the Dow Jones industrial average and the maximum daily temperature in New York City for May 2003.

Usage

data(maydow)

Arguments

Format

A data frame with 21 observations on the following 3 variables.

Day

Day of the month

DJA

The daily close of the DJIQ

max.temp

Daily maximum temperature in Central Park

Details

Are stock traders influenced by the weather? This dataset looks briefly at this question by comparing the daily close of the Dow Jones industrial average with the maximum daily temperature for the month of May 2003. This month was rainy and unseasonably cool weather wise, yet the DJIA did well.

Examples

Run this code
# NOT RUN {
data(maydow)
attach(maydow)
plot(max.temp,DJA)
plot(max.temp[-1],diff(DJA))
# }

Run the code above in your browser using DataLab