Learn R Programming

BSDA (version 1.2.1)

Hurrican: Number of storms, hurricanes and El Nino effects from 1950 through 1995

Description

Data for Exercises 1.38, 10.19, and Example 1.6

Usage

Hurrican

Arguments

Format

A data frame/tibble with 46 observations on four variables

year

a numeric vector indicating year

storms

a numeric vector recording number of storms

hurrican

a numeric vector recording number of hurricanes

elnino

a factor with levels cold, neutral, and warm

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code

T1 <- xtabs(~hurrican, data = Hurrican)
T1
barplot(T1, col = "blue", main = "Problem 1.38",
        xlab = "Number of hurricanes", 
        ylab = "Number of seasons")
boxplot(storms ~ elnino, data = Hurrican, 
        col = c("blue", "yellow", "red"))
anova(lm(storms ~ elnino, data = Hurrican))
rm(T1)

Run the code above in your browser using DataLab