Create an epidist_linelist_data object from a data frame with event dates
Source:R/linelist_data.R
as_epidist_linelist_data.data.frame.Rd
Create an epidist_linelist_data object from a data frame with event dates
Usage
# S3 method for class 'data.frame'
as_epidist_linelist_data(
data,
pdate_lwr = NULL,
sdate_lwr = NULL,
pdate_upr = NULL,
sdate_upr = NULL,
obs_date = NULL,
...
)
Arguments
- data
A data.frame containing line list data
- pdate_lwr
A string giving the column of
data
containing the primary event lower bound as a datetime. Defaults toNULL
which assumes that the variablepdate_lwr
is present.- sdate_lwr
A string giving the column of
data
containing the secondary event lower bound as a datetime. Defaults toNULL
which assumes that the variablesdate_lwr
is present.- pdate_upr
A string giving the column of
data
containing the primary event upper bound as a datetime. If this column exists in the data it will be used, otherwise if not supplied then the value ofpdate_lwr
+ 1 day is used.- sdate_upr
A string giving the column of
data
containing the secondary event upper bound as a datetime. If this column exists in the data it will be used, otherwise if not supplied then the value ofsdate_lwr
+ 1 day is used.- obs_date
A string giving the column of
data
containing the observation time as a datetime. Optional, if not supplied then the maximum ofsdate_upr
is used.- ...
Additional arguments passed to methods
See also
Other linelist_data:
as_epidist_linelist_data()
,
as_epidist_linelist_data.default()
,
assert_epidist.epidist_linelist_data()
,
is_epidist_linelist_data()
,
new_epidist_linelist_data()