| openSkiesAircraft {openSkies} | R Documentation |
An R6Class object representing an aircraft
Description
R6Class object representing an aircraft. Contains information
about the ICAO 24-bit code of the aircraft, its registration code, its country
of origin, its manufacturer and its operator. New instances can be manually
created by providing values for at least the ICAO24 field. Alternatively,
getAircraftMetadata will return an openSkiesAirport object
corresponding to the airport with the provided ICAO 24-bit code.
Usage
openSkiesAircraft
Fields
ICAO24String with the ICAO 24-bit aicraft address associated to the aircraft in hexadecimal format
registrationString with the aircraft registration code, also called tail number
origin_countryString with the country where the aircraft is registered
last_state_vectorAn object of class
openSkiesStateVectorrepresenting the last known state vector for the aircraftstate_vector_historyAn object of class
openSkiesStateVectorSetrepresenting the history of all known state vectors for the aircraftmanufacturer_nameString with the name of the manufacturer of the aircraft
manufacturer_ICAOString with the ICAO code of the manufacturer of the aircraft
modelString with the aicraft model
serial_numberString with the serial number of the aircraft
line_numberString with the line number of the aircraft. Usually only provided for Boeing aircrafts. Line numbers specify the order in which airframes of a particular product line were assembled.
ICAO_type_codeString with the ICAO code for the model of aircraft
ICAO_aircraft_classString with the ICAO code for the type of aircraft. ICAO aircraft classes provide more general groups than ICAO type codes
ownerString with the name of the registered aircraft owner
operatorString with the name of the aircraft operator
operator_call_signString with the callsign of the aircraft operator
operator_ICAOString with the ICAO code of the aircraft operator
operator_IATAString with the IATA code of the aircraft operator
first_flight_dateString with the date when the first flight for the aircraft was registered. This information is usually not available when retrieving information from the OpenSky API
category_descriptionString with physical information about the aircraft provided by the ADS-B emitter unit
Methods
-
get_values(field, removeNAs=FALSE) -
This method retrieves the value of
fieldfor all the state vectors stored in theopenSkiesStateVectorSetobject. IfremoveNAs=TRUE(by default,removeNAs=FALSE), missing values are removed from the output. Otherwise, NA is returned in place of missing items.
Examples
# Create an openSkiesAircraft object corresponding to the aircraft with
# ICAO 24-bit address 3922e2
if(interactive()){
test_aircraft <- getAircraftMetadata("3922e2")
test_aircraft
}