m.since: A Date/Month Time Difference Function

View source: R/m.since.R

m.sinceR Documentation

A Date/Month Time Difference Function

Description

This function helps you determine the number of months between two columns containing date values.

Usage

m.since(late_date, first_date, format = "%d/%m/%Y", to = "months")

Arguments

late_date

enter data frame column containing the later dates (e.g., second observation in a time-series data set).

first_date

enter the earlier date column.

format

format the entered date columns should be read as.

to

enter the format in which you would like the time difference output (e.g., days, weeks, months, years)

Examples

m.since()

noahlorinczcomi/sgmm documentation built on Aug. 23, 2023, 1:28 a.m.