Skip to contents

Average temperatures between 1975 and 2010 of 20 major cities of the world. Source.

Site coordinates for this dataset are in cities_coordinates.

The full dataset with 100 cities can be downloaded from https://github.com/BlasBenito/distantia/blob/main/data_full/cities_temperature.rda (use the "Download raw file" button).

Usage

data(cities_temperature)

Format

data frame with 3 columns and 52100 rows.

Examples

data("cities_temperature")

#to time series list
cities <- tsl_initialize(
  x = cities_temperature,
  name_column = "name",
  time_column = "time"
)

#time series plot
if(interactive()){

 #only four cities are shown
 tsl_plot(
  tsl = tsl_subset(
    tsl = tsl,
    names = 1:4
    ),
  guide = FALSE
  )

}