View the number of observations by year, month, and zone in table format
Usage
temp_obs_table(
dat,
project,
x,
zoneid = NULL,
spat = NULL,
lon.dat = NULL,
lat.dat = NULL,
cat = NULL,
lon.spat = NULL,
lat.spat = NULL
)Arguments
- dat
Primary data containing information on hauls or trips. Table in FishSET database contains the string 'MainDataTable'.
- project
String, name of project.
- x
Variable in
datcontaining date variable.- zoneid
Variable in
datthat identifies the individual zones or areas. Defaults to NULL. Define if the name of the zone identifier variable is not `ZoneID`.- spat
Spatial data containing information on fishery management or regulatory zones. Shape, json, geojson, and csv formats are supported. Required if
zoneiddoes not exist indat.- lon.dat
Longitude variable in
dat. Required ifzoneiddoes not exist indat.- lat.dat
Latitude variable in
dat. Required ifzoneiddoes not exist indat.- cat
Variable or list in
spatthat identifies the individual areas or zones. Ifspatis class sf,catshould be name of list containing information on zones. Required ifzoneiddoes not exist indat.- lon.spat
Variable or list from
spatcontaining longitude data. Required ifzoneiddoes not exist indatandspatis a csv file. Leave as NULL ifspatis a shape or json file.- lat.spat
Variable or list from
spatcontaining latitude data. Required ifzoneiddoes not exist indatandspatis a csv file. Leave as NULL ifspatis a shape or json file.
Details
Prints tables displaying the number of observations by year, month, and zone. assignment_column is called
to assign observations to zones if zoneid does not exist in dat. Output is not saved.
