View source: R/seaport_finder.R
seaport_finder | R Documentation |
Find the name and/or code of a seaport. For use in the ferry_emissions
function.
seaport_finder(city, country, port_code, distance = 0.1, ignore.case = FALSE)
city |
Name of the city. |
country |
Name of the country. |
port_code |
Name of the port. |
distance |
Maximum distance allowed for a match between the country/city given, and that of the value in the data set. |
ignore.case |
If |
Data frame containing the country, city, country code, port code, latitude, and longitude of a seaport.
# Look up the city of Aberdeen to find the port_code for it
seaport_finder(city = "Aberdeen")
# Search for a country and city and it finds matches
seaport_finder(country = "United", city = "borunemouth", ignore.case = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.