lt: Lead time from one date to another

Description Usage Arguments Value Examples

View source: R/lt_leadtime.R

Description

Lead time from one date to another

Usage

1
lt(from, to, neg = FALSE)

Arguments

from, to

start and stop dates (in formats that can be recognized as RCC dates).

neg

except negative lead times (set to NA if neg = FALSE)?

Value

Numeric vector

Examples

1
2
3
lt("2017-02-10", "2017-02-16") # 6
lt("2017-02-16", "2017-02-10") # negative lead times ignored by default
lt("2017-02-16", "2017-02-10", TRUE) # -6

incadata documentation built on April 14, 2020, 6:08 p.m.