Skip to contents

Selects site-days in each site type x quarter, then landings of each segment at each visit, subsamples them and splits the subsample by species. Returns the field forms:

Usage

draw_sample(
  fishery,
  design = cas_design(),
  year = max(fishery$years),
  artefacts = NULL,
  seed = 1,
  frame_year = NULL
)

Arguments

fishery

A cas_fishery.

design

A cas_design.

year

Survey year.

artefacts

A cas_artefacts, or NULL.

seed

Seed.

frame_year

Year of the frame survey used (default: the survey year minus artefacts$old_frame).

Value

A cas_sample with visits, A, B, C, the frame, the psu_frame sizes M, and the design and artefacts.

Details

  • A (visit and segment): psu, date, site, site_type, quarter, segment, N (landings counted), boats (boats of the segment based at the site, counted at the visit);

  • B (landing): psu, trip, segment, vessel, hours, W (landed kg), w (subsample kg);

  • C (species in the subsample, long): psu, trip, species, w_s.