mergecsPi: Adds parent variables to the child records of a csPi object.

Description Usage Arguments Details Value Warning Author(s) Examples

Description

This function is designed as a prerequisite for plotting variables within the tr, sl, hl and ca data frames of a csData object where the spatio-temporal and technical information within the hh data frame is required.

Usage

1
mergecsPi(csobj)

Arguments

csobj

an object of class csData

Details

csPi objects consist of 6 nested data frames: se, tr, hh, sl, hl and ca. Information of ICES statistical rectangle, ICES (or FAO) areas, and gear type are recorded as variables only within the hh data frame. This function adds the variables

\$rect, \$area, \$date, \$foCatNat, \$foCatEu5, \$foCatEu6, \$quarter, \$month,

to the tr, hl, sl and ca data frames and defines

\$quarter, \$month,

for the hh data frame.

Value

csobj

An amended csData object with the additional variables as outlined above

Warning

The returned csobj is no longer in csData format.

Author(s)

Alastair Pout a.pout@marlab.ac.uk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#data(cod2004cs)
# A csData@hl table contains data on length frequencies but no 
# information on where these data were obtained, when (other than the year) 
# and with what gear type
#dim(cod2004cs@hl)
#head(cod2004cs@hl)
#newcod2004cs <-mergecsData(cod2004cs)
# The merged csData@hl table contains the additional 
# information on where these data were obtained, when and with what gear type
#dim(newcod2004cs@hl)
#head(newcod2004cs@hl)

ldbk/fishPifct documentation built on May 20, 2019, 11:28 p.m.