Skip to content

Commit

Permalink
edit scallop.rda and remove unsued columns that are not necessary for…
Browse files Browse the repository at this point in the history
… the vignette
  • Loading branch information
Paul-Carvalho committed Apr 30, 2024
1 parent c433d8e commit a29c554
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
11 changes: 0 additions & 11 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,12 @@
#' \describe{
#' \item{TRIPID}{Randomly assigned trip ID number.}
#' \item{DATE_TRIP}{Date of landing.}
#' \item{scallop_fishing_year}{Scallop fishing year.}
#' \item{OPERNUM}{Randomly assigned captains Identification number.}
#' \item{PERMIT.y}{Randomly assigned six-digit vessel fishing permit number.}
#' \item{TRIP_LENGTH}{Days calculated from the elapsed time between the
#' date-time sailed and date-time landed; this is a measure of days absent.}
#' \item{DEALER_RPT_ID}{}
#' \item{GEARCODE}{Fishing gear used on the trip.}
#' \item{dbsource}{Primary data source for observation.}
#' \item{geoid}{10 digit county subdivision from US Census.}
#' \item{namelsad}{Port of landing.}
#' \item{port_lat}{Latitude of the geoid.}
#' \item{port_lon}{longitude of the geoid.}
#' \item{previous_namelsad}{Previous port of landing.}
#' \item{previous_state_fips}{Previous 2 digit state fips code.}
#' \item{previous_geoid}{Previous geoid.}
#' \item{previous_port_lat}{Previous latitude of geoid.}
#' \item{previous_port_lon}{Previous longitude of geoid.}
#' \item{Plan Code}{Portion of the VMS declaration code that identifies the
Expand All @@ -38,8 +29,6 @@
#' 99th percentile value, respectively.}
#' \item{DDLAT}{The latitude reported on a VTR (Vessel Trip Reports).}
#' \item{DDLON}{The longitude reported on a VTR (Vessel Trip Reports).}
#' \item{MN30SQID}{Unique identifier assigned to a thirty minute square.}
#' \item{MN10SQID}{Unique identifier assigned to a ten minute square.}
#' \item{NAME}{Name of wind lease which is found within a given ten minute square.}
#' \item{ZoneID}{FishSET's version of a ten minute square.}
#' \item{POUNDS}{Live pounds.}
Expand Down
5 changes: 2 additions & 3 deletions R/map_viewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ map_viewer <- function(dat, project, spat, avd, avm, num_vars, temp_vars, id_var
#' avd = 'ZoneID', avm = 'TEN_ID', num_vars = 'LANDED_thousands',
#' temp_vars = 'DATE_TRIP', lon_start = 'previous_port_lon',
#' lat_start = 'previous_port_lat', lon_end = 'DDLON',
#' lat_end = 'DDLAT', id_vars = 'previous_namelsad')
#' lat_end = 'DDLAT')
#'
#' # Plot observed fishing locations
#' map_viewer(scallopMainDataTable, 'scallop', "scallopTMSSpatTable",
#' avd = 'ZoneID', avm = 'TEN_ID', num_vars = 'LANDED_thousands',
#' temp_vars = 'DATE_TRIP', lon_start = 'DDLON', lat_start = 'DDLAT',
#' id_vars = 'previous_namelsad')
#' temp_vars = 'DATE_TRIP', lon_start = 'DDLON', lat_start = 'DDLAT')
#'
#' #Plot haul path
#' map_viewer(pollockMainDataTable, 'pollock', spat=spatdat, avd='NMFS_AREA',
Expand Down
Binary file modified data/scallop.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion vignettes/scallop-mod-example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ scallop$LANDED_thousands<-scallop$LANDED_OBSCURED/1000
scallop$DOLLAR_2020_thousands<-scallop$DOLLAR_2020_OBSCURED/1000
vars_to_keep <- c('TRIPID', 'PERMIT.y', 'DATE_TRIP', 'DDLON', 'DDLAT', 'ZoneID',
'LANDED_thousands', 'DOLLAR_2020_thousands', 'port_lon', 'port_lat', 'previous_namelsad',
'LANDED_thousands', 'DOLLAR_2020_thousands', 'port_lon', 'port_lat',
'previous_port_lon', 'previous_port_lat')
scallop <- scallop[vars_to_keep]
```
Expand Down

0 comments on commit a29c554

Please sign in to comment.