Learn R Programming

sdglinkage (version 0.1.0)

get_transformation_trans_date: Transpose the position of day and month.

Description

get_transformation_trans_date transpose the position of day and month of a Date format variable.

Usage

get_transformation_trans_date(date)

Arguments

date

A Date variable.

Value

The output is the transposition of day and month of date and the change log of the transposition. If the day of date is greater than 12, the transposition will fail and return the same date with a log saying "cannot transposte due to day >12".

Examples

Run this code
# NOT RUN {
get_transformation_trans_date("1995-01-11")
get_transformation_trans_date("1995-01-13")

# }

Run the code above in your browser using DataLab