Global Warming.
I downloaded Global Warming data from Our Wolrd In Data. I selected this data because I wanted to see the sea-surface water temperature overtime.
This is the link used fo the data.
The following code chunks loads the package I will use to read in and prepare the data for analysis.
glimpse(climate_change)
Rows: 10,085
Columns: 20
$ Entity <chr> "Antarctica", "Antar…
$ Date <date> 1992-01-01, 1992-01…
$ `Combined measurements` <dbl> NA, NA, NA, NA, NA, …
$ `Seasonal variation` <dbl> 418.3103, 425.3770, …
$ `Monthly averaged...5` <dbl> NA, NA, NA, NA, NA, …
$ `Annual averaged...6` <dbl> NA, NA, NA, NA, NA, …
$ monthly_sea_surface_temperature_anomaly <dbl> NA, NA, NA, NA, NA, …
$ `Sea surface temp (lower-bound)` <dbl> NA, NA, NA, NA, NA, …
$ `Sea surface temp (upper-bound)` <dbl> NA, NA, NA, NA, NA, …
$ `Monthly pH measurement` <dbl> NA, NA, NA, NA, NA, …
$ `Annual average` <dbl> NA, NA, NA, NA, NA, …
$ `Temperature anomaly` <dbl> NA, NA, NA, NA, NA, …
$ `Church & White` <dbl> NA, NA, NA, NA, NA, …
$ `University of Hawaii` <dbl> NA, NA, NA, NA, NA, …
$ Average <dbl> NA, NA, NA, NA, NA, …
$ arctic_sea_ice_osisaf <dbl> NA, NA, NA, NA, NA, …
$ `Monthly averaged...17` <dbl> NA, NA, NA, NA, NA, …
$ `Annual averaged...18` <dbl> NA, NA, NA, NA, NA, …
$ `Monthly averaged...19` <dbl> NA, NA, NA, NA, NA, …
$ `Annual averaged...20` <dbl> NA, NA, NA, NA, NA, …
#view(climate_change)
Create the object World
that is list of the regions I want to extract from the dataset
Change the name of 1st columns to Region and the 4th columns to Temperature anomaly
Use filter to extract the rows that I want to keep: Year >= 1880-01-15 and Region in World.
Select the columns to keep: eegion, Date, temperature_anomaly
Assign the output to regional_anomaly
Check that the total for 1880 equals the total in the graph
# A tibble: 1 × 3
region Date temperature_anomaly
<chr> <date> <dbl>
1 World 1880-06-15 -0.2
Add a picture
write_csv(regional_anomaly, file = "regional_anomaly.csv")