[.DATRASraw {DATRAS}R Documentation

Sample unit subset.

Description

Sample unit subset for DATRASraw object.

Usage

  ## S3 method for class 'DATRASraw'
 x[i]

Arguments

x

DATRASraw object

i

Integer vector

Details

Extract all information related to a given set of hauls. For instance x[1:2] extracts the first two hauls. Duplicated integer values results in automatic renaming of haul ids. This can be useful for sampling with replacement.

Value

DATRASraw object

Examples


x[1:2]
x[sample(3,replace=TRUE)]
split(x,x$Country)

[Package DATRAS version 1.0 Index]