durSummary: Summary for Date Duration Data

Description Usage Arguments Details Author(s) See Also Examples

View source: R/durSummary.R

Description

Returns summary statistics for date duration data (for each group if group is provided)

Usage

1
durSummary(df, start, end, group = NA, timeunit = "days")

Arguments

df

Data frame containing start and end dates.

start

Column in df for start dates.

end

Column in df for end dates.

group

Column in df for groups. Default NA.

timeunit

Unit of time to be used in plots. "day(s)", "week(s)", "month(s)", "quarter(s)", "semiannual", "halfyear",or "year(s)".

Details

1 year = 365.25 days, 1 month = 30.42 days, 1 year = 52.14 weeks

Author(s)

Dahee Lee

See Also

durPlot, durCalc

Examples

1
durSummary(life_exp, start = "Birth", end = "Death", group = "Country", timeunit = "years")

timelineS documentation built on May 2, 2019, 8:57 a.m.