get_vmstracks: title get_vmstracks

View source: R/get_vmstracks.R

get_vmstracksR Documentation

title get_vmstracks

Description

This function takes the results from get_marfis() and get_isdb() and extracts the relevant VMS tracks, and flags whether or not each was observed

Usage

get_vmstracks(data = NULL, ...)

Arguments

data

default is NULL. This is the entire output from any of the fleet wrappers.

...

other arguments passed to methods It is likely that you will need to provide values for the following 4 parameters to enable a connection to oracle:

  • oracle.username This is your username for accessing oracle objects.

  • oracle.password This is your password for accessing oracle objects.

  • oracle.dsn This is your dsn/ODBC identifier for accessing oracle objects.

  • usepkg This indicates whether the connection to Oracle should use 'rodbc' or 'roracle' to connect. rodbc is slightly easier to setup, but roracle will extract data more quickly.

Value

returns a dataframe of the VMS data. The OBS field contains a value>0 if the trip was observed.

Author(s)

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

See Also

Other simpleproducts: quick_map(), summarize_locations(), summarizer()

Examples

## Not run: 
redfishresults <- fleet_redfish(unit=3, year = "2017", useLocal=T,data.dir="c:/data/")
redfishVMS<-get_vmstracks(data = redfishresults,
                          oracle.username = "me",
                          oracle.password = "mypassword",
                          oracle.dsn="PTRAN",
                          usepkg="roracle")
                          
## End(Not run)

Maritimes/Mar.bycatch documentation built on Aug. 18, 2024, 8:43 a.m.