Learn R Programming

airportr (version 0.1.3)

airports_near_airport: Lookup airports nearby other airports

Description

A function that returns details of airports within a user-specified distance of a given airport.

Usage

airports_near_airport(input, distance = 100)

Arguments

input

An airport name, IATA code, or ICAO code. Input type will be guessed unless explicitly defined

distance

Distance boundary for nearest airport lookup in kilometres

Value

A tibble of airports that fall within the specified range of input airport

Examples

Run this code
# NOT RUN {
airports_near_airport("YVR")

# Or with a user specified distance in kilometres
airports_near_airport("YVR", distance = 200)
# }

Run the code above in your browser using DataLab