Learn R Programming

smbdata (version 0.2.0)

temperature: Rothamsted monthly mean temperature

Description

This dataset contains the monthly mean temperatures recorded at Rothamsted Experimental Station from 1891 to 1990. Each observation represents the mean temperature (variate Temperature) for a specific month and year within this 100-year period. The data are suitable for time series analysis and are expected to exhibit an annual cyclic pattern, making them appropriate for modeling using trigonometric regression methods.

Usage

temperature

Arguments

Format

A data frame with 3 variables: MonthName, Month, Temperature.

MonthName

Factor. Name of the month (e.g., "January", "February").

Month

Integer. Numeric code for the month (1 = January, ..., 12 = December).

Temperature

Numeric. Mean temperature for the month (in degrees Celsius).

Examples

Run this code
lm(Temperature ~ sin(2 * pi * Month / 12) + cos(2 * pi * Month / 12),
   data = temperature)

Run the code above in your browser using DataLab