sw_people: Entities from the Star Wars Universe

Description Usage Format Details Source Examples

Description

Data retrieved from the swapi API on the Star Wars Universe.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Format

Unnamed lists with varying number of components.

Details

Source

Data comes from http://swapi.co/ retrieved using the rwars package: https://github.com/Ironholds/rwars

Examples

1
2
3
4
5
6
7
8
9
# sw_people
length(sw_people)
names(sw_people[[1]])
sapply(sw_people, `[[`, "name")

# sw_films
length(sw_films)
names(sw_films[[1]])
sapply(sw_films, `[[`, "title")

Example output

[1] 87
 [1] "name"       "height"     "mass"       "hair_color" "skin_color"
 [6] "eye_color"  "birth_year" "gender"     "homeworld"  "films"     
[11] "species"    "vehicles"   "starships"  "created"    "edited"    
[16] "url"       
 [1] "Luke Skywalker"        "C-3PO"                 "R2-D2"                
 [4] "Darth Vader"           "Leia Organa"           "Owen Lars"            
 [7] "Beru Whitesun lars"    "R5-D4"                 "Biggs Darklighter"    
[10] "Obi-Wan Kenobi"        "Anakin Skywalker"      "Wilhuff Tarkin"       
[13] "Chewbacca"             "Han Solo"              "Greedo"               
[16] "Jabba Desilijic Tiure" "Wedge Antilles"        "Jek Tono Porkins"     
[19] "Yoda"                  "Palpatine"             "Boba Fett"            
[22] "IG-88"                 "Bossk"                 "Lando Calrissian"     
[25] "Lobot"                 "Ackbar"                "Mon Mothma"           
[28] "Arvel Crynyd"          "Wicket Systri Warrick" "Nien Nunb"            
[31] "Qui-Gon Jinn"          "Nute Gunray"           "Finis Valorum"        
[34] "Jar Jar Binks"         "Roos Tarpals"          "Rugor Nass"           
[37] "Ric Oli<U+00E9>"       "Watto"                 "Sebulba"              
[40] "Quarsh Panaka"         "Shmi Skywalker"        "Darth Maul"           
[43] "Bib Fortuna"           "Ayla Secura"           "Dud Bolt"             
[46] "Gasgano"               "Ben Quadinaros"        "Mace Windu"           
[49] "Ki-Adi-Mundi"          "Kit Fisto"             "Eeth Koth"            
[52] "Adi Gallia"            "Saesee Tiin"           "Yarael Poof"          
[55] "Plo Koon"              "Mas Amedda"            "Gregar Typho"         
[58] "Cord<U+00E9>"          "Cliegg Lars"           "Poggle the Lesser"    
[61] "Luminara Unduli"       "Barriss Offee"         "Dorm<U+00E9>"         
[64] "Dooku"                 "Bail Prestor Organa"   "Jango Fett"           
[67] "Zam Wesell"            "Dexter Jettster"       "Lama Su"              
[70] "Taun We"               "Jocasta Nu"            "Ratts Tyerell"        
[73] "R4-P17"                "Wat Tambor"            "San Hill"             
[76] "Shaak Ti"              "Grievous"              "Tarfful"              
[79] "Raymus Antilles"       "Sly Moore"             "Tion Medon"           
[82] "Finn"                  "Rey"                   "Poe Dameron"          
[85] "BB8"                   "Captain Phasma"        "Padm<U+00E9> Amidala" 
[1] 7
 [1] "title"         "episode_id"    "opening_crawl" "director"     
 [5] "producer"      "release_date"  "characters"    "planets"      
 [9] "starships"     "vehicles"      "species"       "created"      
[13] "edited"        "url"          
[1] "A New Hope"              "Attack of the Clones"   
[3] "The Phantom Menace"      "Revenge of the Sith"    
[5] "Return of the Jedi"      "The Empire Strikes Back"
[7] "The Force Awakens"      

repurrrsive documentation built on July 16, 2019, 1:02 a.m.