PAMTEMP: Pamplona Temperatures

PAMTEMPR Documentation

Pamplona Temperatures

Description

The data frame PAMTEMP has records of the temperature and precipitation for Pamplona, Spain from January 1, 1990 to December 31, 2010.

Usage

PAMTEMP

Format

A data frame with 7547 observations on the following 7 variables:

  • tmax (maximum daily temperature in Celsius)

  • tmin (minimum daily temperature in Celsius)

  • precip (daily precipitation in mm)

  • day (day of the month)

  • month (month of the year)

  • year (year)

  • tmean (the average of tmax and tmin)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

str(PAMTEMP)
levels(PAMTEMP$month)
PAMTEMP$month <- factor(PAMTEMP$month, levels = month.abb[1:12])
levels(PAMTEMP$month)
ggplot(data = PAMTEMP, aes(x = 1:dim(PAMTEMP)[1], y = tmean)) + 
geom_line() + 
theme_bw() + 
labs(x = "", y = "Average Temperature (Celcius)")

alanarnholt/PASWR2 documentation built on June 2, 2022, 5:20 a.m.