In this chapter, we’ll cover the core functions for vector objects. The code below uses the functions you’ll learn to calculate summary statistics from two exams.
# 10 students from two different classes took two exams.# Here are three vectors showing the datamidterm <-c(62, 68, 75, 79, 55, 62, 89, 76, 45, 67)final <-c(78, 72, 97, 82, 60, 83, 92, 73, 50, 88)# How many students are there?length(midterm)## [1] 10