durSummary {timelineS} | R Documentation |
Summary for Date Duration Data
Description
Returns summary statistics for date duration data (for each group if group
is provided)
Usage
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. |
Details
1 year = 365.25 days, 1 month = 30.42 days, 1 year = 52.14 weeks
Author(s)
Dahee Lee
See Also
Examples
durSummary(life_exp, start = "Birth", end = "Death", group = "Country", timeunit = "years")
[Package timelineS version 0.1.1 Index]