# Load library
library(tidyverse)
# Import data
olympics = read_csv(file = "https://raw.githubusercontent.com/zief0002/epsy-5261/main/data/olympics.csv")
# View data
olympicsolympics.csv
The Olympic Games are an international multi-sport event held every four years in which thousands of athletes from around the world participate in various sports competitions. The Olympics are one of the most significant and prestigious sporting events globally, promoting unity, friendship, and fair play among nations.
The data in olympics.csv includes information about randomly sampled Olympians from the United States and Canada.
The attributes included in the data are:
name: Olympian’s namesex: Olympian’s sex (F = Female, M = Male)age: Olympian’s age (in years)height: Olympian’s height (in cm)weight: Olympian’s weight (in kg)team: Team the Olympian competed for (United States or Canada)year: Year in which the Olympian competedgames: Games in which the Olympian competed (Summer or Winter)city: City in which the Olympic Games took placesport: Broad category of sport in which the Olympian competedevent: More specific event in which the Olympian competedmedal: Medal won by the Olympian (No, Bronze, Silver, Gold)
Preview
# A tibble: 299 × 12
name sex age height weight team year games
<chr> <chr> <dbl> <dbl> <dbl> <chr> <dbl> <chr>
1 Lindsey Napela Berg F 28 173 77 United States 2008 Summer
2 Brady Lee Ellison M 27 181 86 United States 2016 Summer
3 Brady Lee Ellison M 27 181 86 United States 2016 Summer
4 Marilou Dozios-Prvost F 22 160 48 Canada 2008 Summer
5 Ashley Brzozowicz F 25 176 75 Canada 2008 Summer
6 Robert Jeffrey Dover M 44 178 68 United States 2000 Summer
7 Franois Bourque M 21 182 88 Canada 2006 Winter
8 Reid Coolsaet M 37 173 62 Canada 2016 Summer
9 Valrie Dionne F 24 173 72 Canada 2004 Summer
10 Tanya Dubnicoff F 30 170 68 Canada 2000 Summer
city sport event medal
<chr> <chr> <chr> <chr>
1 Beijing Volleyball Volleyball Women's Volleyball Silver
2 Rio de Janeiro Archery Archery Men's Individual Bronze
3 Rio de Janeiro Archery Archery Men's Team Silver
4 Beijing Weightlifting Weightlifting Women's Flyweight no
5 Beijing Rowing Rowing Women's Coxed Eights no
6 Sydney Equestrianism Equestrianism Mixed Dressage, Individual no
7 Torino Alpine Skiing Alpine Skiing Men's Giant Slalom no
8 Rio de Janeiro Athletics Athletics Men's Marathon no
9 Athina Water Polo Water Polo Women's Water Polo no
10 Sydney Cycling Cycling Women's 500 metres Time Trial no
# ℹ 289 more rows
References
The original data were made availabel by Bhanupratap Biswas on Kaggle.