View source: R/get_locations.R
get_locations | R Documentation |
Extract a list of lat, long, ten minute square, etc from the NEFSC "loc" supporting table
get_locations(channel, sqlStatement = "select * from cfdbs.loc")
channel |
an Object inherited from |
sqlStatement |
Character string. An sql statement (optional).
If no |
A list is returned:
data |
containing the result of the executed |
sql |
containing the |
colNames |
a vector of the table's column names |
Use the data dictionary for field name explanations
connect_to_database
Other get functions:
get_areas()
,
get_gears()
,
get_ports()
,
get_species()
,
get_species_itis()
,
get_vessels()
## Not run:
# extracts complete locations table based on default sql statement
channel <- connect_to_database(server="name_of_server",uid="individuals_username")
get_locations(channel)
# extracts subset of location information. Statistical area, and 10 minute square based
# on custom sql statement
sqlStatement <- "select area TENMSQ from cfdbs.loc;"
get_locations(channel,sqlStatement)
# extracts 10 minute square info for an area on geaorges bank (511) based on custom sql statement
sqlStatement <- "select area, tenmsq from cfdbs.loc where area=511;"
get_locations(channel,sqlStatement)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.