Package rwars. January 14, 2017

Similar documents
Package robotstxt. November 12, 2017

Package triebeard. August 29, 2016

Package internetarchive

Package rgho. R topics documented: January 18, 2017

Package fastdummies. January 8, 2018

Package goodpractice

Package ECctmc. May 1, 2018

Package reconstructr

Package fitbitscraper

Package virustotal. May 1, 2017

Package dkanr. July 12, 2018

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package SEMrushR. November 3, 2018

Package rcmdcheck. R topics documented: November 10, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package algorithmia. September 13, 2016

Package patentsview. July 12, 2017

Package rzeit2. January 7, 2019

Package statsdk. September 30, 2017

Package opencage. January 16, 2018

Package calpassapi. August 25, 2018

Package condusco. November 8, 2017

Package pdfsearch. July 10, 2018

Package semver. January 6, 2017

Package loggit. April 9, 2018

Package rbraries. April 18, 2018

Package canvasxpress

Package postgistools

Package validara. October 19, 2017

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package githubinstall

Package RODBCext. July 31, 2017

Package WikipediR. February 5, 2017

Package elasticsearchr

Package wikitaxa. December 21, 2017

Package wdman. January 23, 2017

Package httpcache. October 17, 2017

Package WordR. September 7, 2017

Package sqlscore. April 29, 2018

Package spark. July 21, 2017

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package data.world. April 5, 2018

Package profvis. R topics documented:

Package jug. April 13, 2017

Package promote. November 15, 2017

Package guardianapi. February 3, 2019

Package censusapi. August 19, 2018

Package colf. October 9, 2017

Package knitrprogressbar

Package facerec. May 14, 2018

Package eply. April 6, 2018

Package SNPediaR. April 9, 2019

Package Ramble. R topics documented: October 29, Type Package Title Parser Combinator for R Version Date Author Chapman Siu

Package ssh. June 4, 2018

Package climber. R topics documented:

Package ritis. May 23, 2018

Package phrasemachine

Package aws.transcribe

Package rdryad. June 18, 2018

Package ezknitr. September 16, 2016

Package crossword.r. January 19, 2018

Package liftr. R topics documented: May 14, Type Package

Package datasets.load

Package dbx. July 5, 2018

Package bigqueryr. October 23, 2017

Package vinereg. August 10, 2018

Package docxtools. July 6, 2018

Package RYoudaoTranslate

Package modules. July 22, 2017

Package essurvey. August 23, 2018

Package shinyfeedback

Package widyr. August 14, 2017

Package smapr. October 20, 2017

Package datapasta. January 24, 2018

Package PxWebApiData

Package fingertipsr. May 25, Type Package Version Title Fingertips Data for Public Health

Package bisect. April 16, 2018

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package knitrbootstrap

Package postal. July 27, 2018

Package GetoptLong. June 10, 2018

R topics documented: 2 checkpoint-package

Package labelvector. July 28, 2018

Package jpmesh. December 4, 2017

Package edfreader. R topics documented: May 21, 2017

Package barcoder. October 26, 2018

Package effectr. January 17, 2018

Package BiocManager. November 13, 2018

Package lumberjack. R topics documented: July 20, 2018

Package yhatr. R topics documented: May 9, Type Package Title R Binder for the Yhat API Version Date

Package kdtools. April 26, 2018

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package crochet. January 8, 2018

Package urltools. October 17, 2016

Package nngeo. September 29, 2018

Package clusternomics

Package gifti. February 1, 2018

Package geoops. March 19, 2018

Package cancensus. February 4, 2018

Transcription:

Package rwars January 14, 2017 Type Package Title R Client for the Star Wars API Provides functions to retrieve and reformat data from the 'Star Wars' API (SWAPI) <https://swapi.co/>. Version 1.0.0 Date 2017-01-13 Author Oliver Keyes Maintainer Oliver Keyes <ironholds@gmail.com> License MIT + file LICENSE Imports httr Suggests testthat, knitr, rmarkdown VignetteBuilder knitr RoxygenNote 5.0.1 NeedsCompilation no Repository CRAN Date/Publication 2017-01-14 16:30:04 R topics documented: get_all_planets....................................... 2 get_planet.......................................... 3 get_planet_schema..................................... 4 rwars............................................ 5 Index 6 1

2 get_all_planets get_all_planets Retrieve Data about Every DB Entry in a Class these functions retrieve the data associated with every entry in a particular class of object, where that class may be planet, species, vehicle, so on and so forth. Usage get_all_planets(query_continue = NULL, parse_result = FALSE,...) get_all_species(query_continue = NULL, parse_result = FALSE,...) get_all_films(query_continue = NULL, parse_result = FALSE,...) get_all_vehicles(query_continue = NULL, parse_result = FALSE,...) get_all_starships(query_continue = NULL, parse_result = FALSE,...) get_all_people(query_continue = NULL, parse_result = FALSE,...) Arguments query_continue whether this is a continuation of a previous query. Set to NULL by default; the alternative is to provide this argument with the "next" URL from a returned object - see the examples. parse_result whether to parse and simplify the result of the query. Set to FALSE by default.... further arguments to pass to httr s GET function. See Also retrieving individual entries with entries Examples #Retrieve all planets, parsing planets <- get_all_planets(parse_result = TRUE) #It's only returned some of the results! Use query_continue to get #the rest. second_set_of_planets <- get_all_planets(getelement(planets,"next"), parse_result = TRUE)

get_planet 3 get_planet Retrieve Data about a Specific DB Entry These functions return a specific DB entry s information - where that entry can be a planet, species, vehicle, so on and so forth. Usage get_planet(id, parse_result = FALSE,...) get_species(id, parse_result = FALSE,...) get_film(id, parse_result = FALSE,...) get_vehicle(id, parse_result = FALSE,...) get_starship(id, parse_result = FALSE,...) get_person(id, parse_result = FALSE,...) Arguments id parse_result the numeric ID of the (planet, species, etc) you want to retrieve. Note that IDs are not necessarily sequential; IDs 3, 4 and 6 may exist, while ID 5 may error. whether to parse and simplify the data before returning it. Set to FALSE by default.... further arguments to pass to httr s GET function. See Also retrieving entire classes of entries with all_entries. Examples #Retrieve an object by ID looking_for_data_in_alderaan_places <- get_planet(2)

4 get_planet_schema get_planet_schema Retrieve the schema specifications for different object classes *_schema functions grab the schema specifications for each class of objects in the SWAPI database. This can be used to predict what structure data returned from the API will take. Usage get_planet_schema(parse_result = FALSE,...) get_species_schema(parse_result = FALSE,...) get_film_schema(parse_result = FALSE,...) get_vehicle_schema(parse_result = FALSE,...) get_starship_schema(parse_result = FALSE,...) get_person_schema(parse_result = FALSE,...) Arguments parse_result whether to simplify the results before they are returned. This is FALSE by default.... additional arguments to pass to httr s GET function, such as timeout settings or user agents. Value a list-based representation of the relevant JSON schema. See Also entries for retrieving data about individual planets, schemas, etc, or all_entries for retrieving all of the data in a particular category. Examples get_planet_schema()

rwars 5 rwars Star Wars API client library A package connecting R to the Star Wars API

Index all_entries, 3, 4 all_entries (get_all_planets), 2 entries, 2, 4 entries (get_planet), 3 get_all_films (get_all_planets), 2 get_all_people (get_all_planets), 2 get_all_planets, 2 get_all_species (get_all_planets), 2 get_all_starships (get_all_planets), 2 get_all_vehicles (get_all_planets), 2 get_film (get_planet), 3 get_film_schema (get_planet_schema), 4 get_person (get_planet), 3 get_person_schema (get_planet_schema), 4 get_planet, 3 get_planet_schema, 4 get_species (get_planet), 3 get_species_schema (get_planet_schema), 4 get_starship (get_planet), 3 get_starship_schema (get_planet_schema), 4 get_vehicle (get_planet), 3 get_vehicle_schema (get_planet_schema), 4 rwars, 5 rwars-package (rwars), 5 schemas (get_planet_schema), 4 6