# load data
library(dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
WW_Weather <- read.csv("https://raw.githubusercontent.com/johnnyboy1287/Covid_Data/main/daily_weather_data.csv")
You should phrase your research question in a way that matches up with the scope of inference your dataset allows for.
Does climate change affect worldwide weather more in the Northern or Southern Hemisphere?
What are the cases, and how many are there?
There are 324647 elements of data from 194 different countries.
Describe the method of data collection.
The kaggle data was compiled using the site Meteostat.net. This website has open source data collected from thousands of weather stations worldwide
What type of study is this (observational/experiment)?
This is an observational study.
If you collected the data, state self-collected. If not, provide a citation/link.
The data was retrieved in kaggle.
https://www.kaggle.com/datasets/balabaskar/historical-weather-data-of-all-country-capitals
What is the response variable? Is it quantitative or qualitative?
The Explanatory variables are temperature, windspeed and air pressure.
The independent variable is location.
Provide summary statistics for each the variables. Also include appropriate visualizations related to your research question (e.g. scatter plot, boxplots, etc). This step requires the use of R, hence a code chunk is provided below. Insert more code chunks as needed.
WW_Weather_North <- filter(WW_Weather, WW_Weather$Latitude>0)
WW_Weather_South <- filter(WW_Weather, WW_Weather$Latitude<0)
summary(WW_Weather$tavg)
## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
## -33.80 15.60 25.00 21.02 27.50 44.10 9684
#Summary of Northern Hemisphere temperature
summary(WW_Weather_North$tavg)
## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
## -33.80 14.10 24.80 20.55 27.60 44.10 6660
#Summary of Southern Hemisphere temperature
summary(WW_Weather_South$tavg)
## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
## -13.00 21.80 25.50 22.95 27.20 36.00 3024
#Plot of latitude over temperature in the northern hemisphere
plot(tavg ~ Latitude, WW_Weather_North)
#Plot of latitude over temperature in the Southern hemisphere
plot(tavg ~ Latitude, WW_Weather_South)