Learn R Programming

distantia (version 2.0.2)

cities_temperature: Long Term Monthly Temperature in 20 Major Cities

Description

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)

Arguments

Format

data frame with 3 columns and 52100 rows.

See Also

Other example_data: albatross, cities_coordinates, covid_counties, covid_prevalence, eemian_coordinates, eemian_pollen, fagus_coordinates, fagus_dynamics, honeycomb_climate, honeycomb_polygons

Examples

Run this code
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
  )

}

Run the code above in your browser using DataLab