2 Wrangling data
Filter the starwars
dataset so that only the characters of the Droid species are included. You should get a six row list from C3PO to BB8. You may want to make the table prettier by piping it into gt() to make a gt table.
Hint 1
Consider using the filter()
function from dplyr
. Note that the species ‘Droid’ is capitalized.
Hint 2
You should filter the dataset using the species
column. Remember to use “==” to test equality.