You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until now the package is not on CRAN but you can download it via GitHub
with the following command:
if (!require("devtools"))
install.packages("devtools")
devtools::install_github("JohannesFriedrich/SpaceX")
Introduction
The R-package SpaceX is an API wrapper for data collected by
https://api.spacexdata.com/v3/ (version v3). You can request available
data with different functions:
Function name
Description
Example
get_SpaceX_capsules()
request information on capsules
get_SpaceX_capsules(“upcoming”)
get_SpaceX_cores()
request information on cores
get_SpaceX_cores(core_serial = “B1037”)
get_SpaceX_dragons()
request information on dragon capsules
get_SpaceX_dragons(“dragon1”)
get_SpaceX_history()
request information on SpaceX history
get_SpaceX_history()
get_SpaceX_info()
request common information on SpaceX
get_SpaceX_info()
get_SpaceX_landpads()
request information on landpads
get_SpaceX_landpads(id = “LZ-4”)
get_SpaceX_launches()
request information on launches
get_SpaceX_launches(launch_year = 2020)
get_SpaceX_launchpads()
request information on launchpads
get_SpaceX_launchpads(site_id = “ksc_lc_39a”)
get_SpaceX_missions()
request information on missions
get_SpaceX_missions()
get_SpaceX_payloads()
request information on payloads
get_SpaceX_payloads()
get_SpaceX_rockets()
request information on rockets
get_SpaceX_rockets(“falcon1”)
get_SpaceX_ships()
request information on ships
get_SpaceX_ships()
get_SpaceX_roadster()
request information on SpaceX roadster
get_SpaceX_roadster()
Request basic information from SpaceX API
First we load some needed packages. The function get_SpaceX_info()
will deliver some information about the company.