Learn R Programming

datplot (version 1.0.0)

switch.dating: Switch values where dating is in wrong order (internal)

Description

Requires a dataframe with 4 variables: ID (ideally factor), group (ideally factor), minimum date (int/numeric) and maximum date (int/numeric) and DAT_err as a vector of indices where dating is in wrong order.

Usage

switch.dating(DAT_df, DAT_err)

Arguments

DAT_df

a dataframe with 4 variable: ID, group, minimum date (int/num) maximum date (int/num)

DAT_err

a vector containing the indices of the dates which are in wrong order

Value

corrected DAT_mat