Description Usage Arguments Details Value Warning Author(s) Examples
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.
1 | mergecsPi(csobj)
|
csobj |
an object of class csData |
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.
csobj |
An amended csData object with the additional variables as outlined above |
The returned csobj is no longer in csData format.
Alastair Pout a.pout@marlab.ac.uk
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.