Recently Published
Assessment 1: Exploratory Data Analysis with R
Module: Sports Analytics & Insight
Lecturer: Dr Denise Earle
Date: Midnight 04/03/2024
Nusaiba Tazreen Tanisha - Assignment 2
Assignment 2
Given a data frame as following
exam_score = data.frame(
ID = c(1, 2, 3, 4, 5),
Name = c("Alice", "Bob", "David", "John", "Jenny"),
Age = c(20, 25, 30, 22, 18),
Score = c(100, 78, 90, 55, 81)
)
Create this data frame.
Add 2 new rows.
Add a new column called “Income”. This column should be numerical.
Find max, min, median, sum, mean, standard deviation, variance, and quantiles of columns Age, Score, and Income.
Find correlation between
Age and score
Age and income
Score and income
Select rows where the score is greater than or equal to 80
Select rows with the age range of 20 to 30
Select rows with age 22, 25, and 30.
AQ_Rotterdam_trends_PM10
AQ_Rotterdam_trends_PM10
AQ_Rotterdam_trends_NO2
AQ_Antwerpen_trends_NO2