date2Numeric: Convert a date into a number

Description Usage Arguments Value Note Author(s)

View source: R/date2Numeric.R

Description

Converts a vector of dates into a vector of numbers, where the first date is considered to be at time 0.

Usage

1
date2Numeric(DateVec, Format)

Arguments

DateVec

A vector of dates.

Format

The R-coded format (as.Date) the dates are in.

Value

DateVec

A numeric vector representing the date.

Note

This always sets the earliest date to 0.

Author(s)

Joe Swintek


StatCharrms documentation built on Nov. 14, 2020, 5:09 p.m.