getDateOffset: Get Max. Date Offset

Description Usage Arguments Value

Description

Calculate the maximum date offset between a date column in a data.frame and the current date.

Usage

1
2
getDateOffset(df, date_colname, units = "years", format = "%d%m%Y",
  curr_date = Sys.Date())

Arguments

df

a data.frame

date_colname

the column name of the date column

units

expected units, "years" or all other units accepted by difftime

curr_date

default, Sys.Date()

Value

a numeric value


sunsiyu/featurer documentation built on May 30, 2019, 8:39 p.m.