library(tidyverse) #load necessary libraries── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.4.4 ✔ tibble 3.2.1
✔ lubridate 1.9.3 ✔ tidyr 1.3.0
✔ purrr 1.0.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(dplyr)
library(ggplot2)
library(RColorBrewer)
setwd("C:/Users/asman/Documents/data110") #set working directory
videogames <- read_csv("metacritic_pc_games.csv") #read datasetRows: 513250 Columns: 14
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (12): Game Title, Game Poster, Game Release Date, Game Developer, Genre,...
dbl (2): Overall Metascore, Rating Given By The Reviewer
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
summary(videogames) Game Title Game Poster Game Release Date Game Developer
Length:513250 Length:513250 Length:513250 Length:513250
Class :character Class :character Class :character Class :character
Mode :character Mode :character Mode :character Mode :character
Genre Platforms Product Rating Overall Metascore
Length:513250 Length:513250 Length:513250 Min. :16.00
Class :character Class :character Class :character 1st Qu.:72.00
Mode :character Mode :character Mode :character Median :80.00
Mean :78.04
3rd Qu.:86.00
Max. :97.00
NA's :69
Overall User Rating Reviewer Name Reviewer Type
Length:513250 Length:513250 Length:513250
Class :character Class :character Class :character
Mode :character Mode :character Mode :character
Rating Given By The Reviewer Review Date Review Text
Min. : 0.0 Length:513250 Length:513250
1st Qu.: 4.0 Class :character Class :character
Median : 9.0 Mode :character Mode :character
Mean : 20.3
3rd Qu.: 10.0
Max. :100.0
NA's :2801