m.since.assign: A Column Assigning Date to Month Function

View source: R/m.since.assign.R

m.since.assignR Documentation

A Column Assigning Date to Month Function

Description

This function will convert date columns to month-since columns (months since first date in time series) and assigns them to a new data frame.

Usage

m.since.assign(data, date_list, to = "months")

Arguments

data

enter data set with date columns.

date_list

enter date column names (str; using e.g., c("date1", "date2" ...) notation)

to

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

format

format the entered date columns should be read as.

Examples

m.since.assign()

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