downloadDailyFishing: Download daily fishing monitoring files

Description Usage Arguments Value Examples

View source: R/imarpe-auxiliar.R

Description

Function to download landing and effort anchovy information from an official repository of the IMARPE. The unique effort of this data base is number of boats.

Usage

1
2
3
downloadDailyFishing(directory = NULL,
  urlFishingMonitoring = "http://www.imarpe.pe/imarpe/archivos/reportes/imarpe_rpelag_porfinal",
  startDate, endDate, saveFile = TRUE)

Arguments

directory

Directory where the landing and effort information are stored. By default it is NULL, temporarily saved and then deleted. If you want to keep this parameter must be changed.

urlFishingMonitoring

The web address (url - Uniform Resource Locator) for downloading the landings. By default it is http://www.imarpe.pe/imarpe/archivos/reportes/imarpe_rpelag_porfinal.

startDate

Start date to download the files.

endDate

End date to download the files.

saveFile

A logical parameter. By default is TRUE to save a data frame with the fishery information that has been downloaded. The name to save the file is "dailyFishing" with the start date (without "-") and the end date (without "-"), this characters saparated by "_".

Value

A data frame where the columns are the variables in spanish:

Examples

1
2
3
4
5
6
7
# Download fishing information, by default it is saved.
fishingInfo = downloadDailyFishing(startDate = "2017-4-20", endDate = "2017-6-19")
View(fishingInfo)

#Use saveFile = FALSE to do not save the information.
fishingInfo = downloadDailyFishing(startDate = "2017-4-20", endDate = "2017-6-19", saveFile = FALSE)
View(fishingInfo)

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