getPort: Get port information from name

Description Usage Arguments Value Examples

View source: R/imarpe-auxiliar.R

Description

This function uses a data base with the list of ports around Peruvian coast (portData) and according to names of the ports that is given, the function get information about: the name of the port, the pattern to find the name of the port, the longitude and latitude of their names, the area (north, south and central) of ports and the importance of the port according the history of the fishery.

Usage

1
getPort(myPorts)

Arguments

myPorts

A vector of the names of ports.

Value

A list, with a list of the information about the ports and a vector with the positions of the ports given to the function.

Examples

1
2
3
4
# The function receive a vector with port names:
ports = getPort(c("T. de mora", "Paita"))
ports$data
ports$position

imarpe/imarpe documentation built on Aug. 8, 2020, 8:40 p.m.