View source: R/StoxBaselineFunctions.R
AddAreaPositionStoxLanding | R Documentation |
StoX function Appends a position to landings data, based on Area and Location codes.
AddAreaPositionStoxLanding(
StoxLandingData,
AreaPosition,
LocationVariable = c("None", "Location", "Coastal")
)
StoxLandingData |
landing data, see |
AreaPosition |
coordinates for Area and Location codes, see |
LocationVariable |
Specify which column in 'StoxLandingsData' should are represented by 'Location' in 'AreaPosition'. See details. |
Positions are appended in the new columns 'Latitude' and 'Longitude' When 'LocationVariable' is specified as 'None' Area is looked up from 'AreaPosition', using the row where 'Location' is missing. When 'LocationVariable' is specified as 'Location', 'Area' and 'Location' in 'StoxLandingData' is looked up against 'Area' and 'Location' in 'AreaPosition'. When 'LocationVariable' is specified as 'Coastal', 'Area' and 'Costal' in 'StoxLandingData' is looked up against 'Area' and 'Location' in 'AreaPosition'.
StoxLandingData
with columns for latitude and longitude appended.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.