summary_duration: Summarize distribution of end_date - start_date by year

Description Usage Arguments See Also Examples

View source: R/summary.R

Description

Summarize distribution of end_date - start_date by year

Usage

1
2
3
4
5
6
7
8
9
summary_duration(
  df,
  yrs,
  start = "start_date",
  end = "end_date",
  dot = "dot",
  samp_size = 1e+05,
  facet = function() facet_wrap(~.data$year)
)

Arguments

df

data frame with date variable

yrs

years of interest

start

variable name for start date

end

variable name for end date

dot

variable name for transaction date

samp_size

sample size to use for efficiency. If NULL, no sample will be used.

facet

facetting function to apply to the plot

See Also

Other functions to summarize license data: plot_demo(), plot_lic_types(), summary_date(), summary_lic_types(), summary_year_dot()

Examples

1
# summary_duration(sale, 2010:2019)

southwick-associates/salicprep documentation built on Oct. 6, 2020, 12:03 p.m.