Great job! You've learned all we have in this section. Before we move on to the next chapter, let's have a quick summary. Remember what the following functions do?
filter() selects rows.
select() selects columns.
group_by() groups data for use in functions.
arrange() sorts data.
median() calculate statistics.
transmute() create new columns.
We also met
inner_join(), a way to combine data from two datasets.
You can combine various functions using the pipe operator (
%>%). With the right functions, we can perform almost any operation on data.
Let's use a new dataset to practice what we know. We'll be working with data about students and their math, history, and geography exam results. The students are in five groups.
First, let's explore this data, starting with the math results.