These exercises cover the sections of LMS_Statistics
# Set working directory
setwd("/Volumes/bioinfomatics$/jurtasun/Courses/CBW2022/LMS_Statistics/course/exercises")
getwd()
## [1] "/Volumes/bioinfomatics$/jurtasun/Courses/CBW2022/LMS_Statistics/course/exercises"
Exercise 1
Read in the file data/life_expectancy_at_birth.csv
and store it as a dataframe
Use the head()
and dim()
functions to show the first 6 rows of the data. How many variables are there?
Use the str()
and summary()
functions to see the data type and summary information of the dataset
How many males and females are in the area of England?
Check maximum and minimum life expectancy in England
Find the the median life expectancy of of Males and Females in England
Get the the quantiles of life.expectancy in Wales, N.Ireland, and Scotland, respectively
Get the mean, variance and standard deviation of the life.expectancy in England