ngs_make_yrvec: Make year vectors considering year change

Description Usage Arguments Examples

Description

This function makes year vector from Excel sheet name (%Y.%m-%Y.%m) and month vector. If the month vector contains year change (Dec-Jan), year vector returned is composed from two years.

Usage

1
ngs_make_yrvec(sheet, month)

Arguments

sheet

Sheet name of Nagasaki catch data (fmt: %Y.%m-%Y.%m).

month

Month vector

Examples

1
2
3
4
5
## Not run: 
  ngs_make_yrvec(sheet = "2018.09-2019.03",
                 month = c(9, 10, 11, 12, 1, 2, 3))

## End(Not run)

kikirinrin/gyokaikyor documentation built on May 17, 2019, 8:21 p.m.