harmonize_time_structure: Set of functions to harmonize the time dimension structure of...

Description Usage Arguments Details Value Author(s) See Also

Description

Set of functions to harmonize the structure of the datasets for the time dimension

Usage

1
2
3
harmo_time_1(df_input,colname_year,colname_timeperiod)
harmo_time_2(df_input,colname_year,colname_month)
harmo_time_3(df_input,colname_year,colname_monthstart,colname_monthstop)

Arguments

df_input

data.frame with the time structure to harmonize

colname_year

string. Name of the column of years.

colname_timeperiod

string. Name of the column of period of time.

colname_month

string. Name of the column of month.

colname_monthstart

string. Name of the column of starting month of validity of the data.

colname_monthstop

string. Name of the column of ending month of validity of the data

Details

In 2017, the time structure of the source tRFMOs datasets are converted with the following functions:

The functions harmo_time_1, harmo_time_2, harmo_time_3, harmo_time_4 work as following:

1) Fist they convert the source time structure to the following target structure:

2) Then they convert the latter structure to the structure with the time_start and time_end columns (this step is done using the function format_time_db_format)

Value

a data.frame in which time dimension is structured with two columns:

Author(s)

Paul Taconet, paul.taconet@ird.fr

See Also

Other harmonize data structure: iattc_functions, iccat_functions, iotc_functions, wcpfc_functions


ptaconet/rtunaatlas documentation built on Sept. 21, 2021, 10:43 p.m.