get_DFO_REST: get_DFO_REST

Description Usage Arguments Author(s) See Also

View source: R/get_DFO_REST.R

Description

This function facilitates the extraction of data from the DFO ESRI REST services into R objects and other formats. By default, the REST services only allow the extraction of 1000 records at a time, and this function does many successive extractions, and merges the records together into a single object.

Usage

1
2
3
4
5
6
get_DFO_REST(
  host = "https://gisp.dfo-mpo.gc.ca",
  service = "FGP/ADAPT_Canada_Atlantic_Summer_2016",
  save_csv = TRUE,
  n_rec = 0
)

Arguments

host

The default is https://gisp.dfo-mpo.gc.ca. This identifies the host url for the service.

service

The default value is 'FGP/ADAPT_Canada_Atlantic_Summer_2016'. This identifies the folder and service from which you want to extract data.

save_csv

The default value is TRUE, which means that the extracted data is saved to a csv file in your working directory. If FALSE, no csv will be created.

n_rec

The default is 0. Primarily for debugging, this allows the user to select only some records, rather than doing a full extraction.

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other ArcGIS: getGeoData()


Maritimes/FGP documentation built on Feb. 8, 2021, 2:15 a.m.