8.2 Selecting your variables
A dataframe with loads of variables can be unwieldy. Use the select()
function to isolate the variables you need for your analysis.
=
Study1 %>%
film select(Title,Release,SubjectSex)
head(Study1)
## # A tibble: 6 x 3
## Title Release SubjectSex
## <chr> <dbl> <chr>
## 1 Big Eyes 2014 Female
## 2 Testament of Youth 2014 Female
## 3 The Brittany Murphy Story 2014 Female
## 4 Wild 2014 Female
## 5 Diana 2013 Female
## 6 Lovelace 2013 Female