lt: Lead time from one date to another

Description Usage Arguments Value Examples

View source: R/lt.R

Description

Lead time from one date to another

Usage

1
2
3
lt(from, to, neg = NA, as = "numeric")

leadtime(from, to, neg = NA, as = "numeric")

Arguments

from, to

start and stop dates (in formats that can be coerced by as.Dates).

neg

default value for negative lead times. NULL means that negative lead times are kept as is. NA by default (changes negative values to NA). Any numerical value is accepted

as

name of the class to be assigned to x. Default is numeric but could also be set to for example difftime or integer.

Value

A vector of class as (numeric by default).

Examples

1
lt(from = Sys.Date(), to = Sys.Date() + 10)

rccdates documentation built on May 2, 2019, 1:46 p.m.