dplyr data & wrangle

library(tidyverse) data <- starwars #setup as tibble data #quick look

## # A tibble: 87 x 13 ## name height mass hair_color skin_color eye_color ## <chr> <int> <dbl> <chr> <chr> <chr> ## 1 Luke Skywalker 172 77 blond fair blue ## 2 C-3PO 167 75 <NA> gold yellow ## 3 R2-D2 96 32 <NA> white, blue red ## 4 Darth Vader 202 136 none white yellow ## 5 Leia Organa 150 49 brown light brown ## 6 Owen Lars 178 120 brown, grey light blue ## 7 Beru Whitesun lars 165 75 brown light blue ## 8 R5-D4 97 32 <NA> white, red red ## 9 Biggs Darklighter 183 84 black light brown ## 10 Obi-Wan Kenobi 182 77 auburn, white fair blue-gray ## # ... with 77 more rows, and 7 more variables: birth_year <dbl>, ## # gender <chr>, homeworld <chr>, species <chr>, films <list>, ## # vehicles <list>, starships <list>