library(tidyverse)
classmates <- tibble(
name = c('Alice', 'Brianna', 'Carlos', 'David',
'Emmett', 'Fiona', 'Grace', 'Helen',
'Issac', 'Jill', 'Leila', 'Nate'),
gender = c('female', 'female', 'male', 'male',
'male', 'female', 'female', 'female',
'male', 'female', 'female', 'male'),
height = c(5.4, 5.9, 5.2, 6.0, 5.6, 5.8, 5.3, 6.1, 5.5, 5.10, 5.4, 6.2),
weight = c(130, 165, 120, 185, 140, 170, 125, 160, 135, 170, 128, 210),
age = c(19, 21, 20, 22, 18, 23, 19, 21, 20, 22, 18, 23),
major = c('Math', 'CS', 'DS', 'CS', 'Math', 'DS', 'CS', 'Math', 'CS', 'CS',
'Math', 'DS')
)
classmates# A tibble: 12 × 6
name gender height weight age major
<chr> <chr> <dbl> <dbl> <dbl> <chr>
1 Alice female 5.4 130 19 Math
2 Brianna female 5.9 165 21 CS
3 Carlos male 5.2 120 20 DS
4 David male 6 185 22 CS
5 Emmett male 5.6 140 18 Math
6 Fiona female 5.8 170 23 DS
7 Grace female 5.3 125 19 CS
8 Helen female 6.1 160 21 Math
9 Issac male 5.5 135 20 CS
10 Jill female 5.1 170 22 CS
11 Leila female 5.4 128 18 Math
12 Nate male 6.2 210 23 DS


