This worksheet goes back to the roots of this course and trains your skills in subsetting data frames. Subsetting summarizes the extraction of individual regions of a data frame (e.g. rows, columns, cells which values fulfill a certain logical expression etc.). After completing this worksheet you should know how to subset data frames using logical expressions.
R Studio — we recommend to use R Studio for (interactive) programming with R. You can download R Studio from the official web page.
First things first: the following analysis is build on top of your script from W02-1. Please copy your script “W02-1.R”, rename the copy to “W12-1.R” and use it for the programming tasks of this worksheet.
Please create subsets with the following attributes: