simTrawlHaulsBySelection: simTrawlHaulsBySelection

Description Usage Arguments Value

View source: R/simDatrasData.R

Description

selects a possibly repeating sample with generated unique ids for bootstrap

Usage

1
2
simTrawlHaulsBySelection(data, idvalues, oldidname = "original.id",
  removeMissing = F)

Arguments

data

data frame to resample, e.g. CA or HL table from DATRAS

idvalues

values of the column haul.id that defines the selection

oldidname

column name where original haul ids should be stored

removeMIssing

indicates whether idvalues with no corresponding entries in data should be rmeoved. If FALSE, this case halts execution

Value

data frame with the specified selection of samples, with column haul.id populated with unqiue identifiers in stead of the original identifiers, and the original identifiers stored in the column oldidname. idvalues not in data will be represented by NAs


natoyaj/TestPackage documentation built on Nov. 13, 2018, 2:18 p.m.