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

ICAO24

String with the ICAO 24-bit aicraft address associated to the aircraft in hexadecimal format

registration

String with the aircraft registration code, also called tail number

origin_country

String with the country where the aircraft is registered

last_state_vector

An object of class openSkiesStateVector representing the last known state vector for the aircraft

state_vector_history

An object of class openSkiesStateVectorSet representing the history of all known state vectors for the aircraft

manufacturer_name

String with the name of the manufacturer of the aircraft

manufacturer_ICAO

String with the ICAO code of the manufacturer of the aircraft

model

String with the aicraft model

serial_number

String with the serial number of the aircraft

line_number

String 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_code

String with the ICAO code for the model of aircraft

ICAO_aircraft_class

String with the ICAO code for the type of aircraft. ICAO aircraft classes provide more general groups than ICAO type codes

owner

String with the name of the registered aircraft owner

operator

String with the name of the aircraft operator

operator_call_sign

String with the callsign of the aircraft operator

operator_ICAO

String with the ICAO code of the aircraft operator

operator_IATA

String with the IATA code of the aircraft operator

first_flight_date

String 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_description

String 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 field for all the state vectors stored in the openSkiesStateVectorSet object. If removeNAs=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
}

[Package openSkies version 1.2.1 Index]