Description Usage Arguments Details Value Examples
Set eventID
relative to each person.
eventID
will be in days after the first observation date.
1 | resetEventIDsToDays(event)
|
event |
a dataframe containing all events across all patients, see Details |
event
contains events as rows and at least the following columns:
iois = patient id, char
startdate = event start date in the format 'YYYY-MM-DD', char
enddate = event end date in the format 'YYYY-MM-DD', char
Relative days refer to the number of days since baseline. Baseline date is the earliest event observed in a patient.
eventID
: number of days since first event (grouped by patient id) to the start date of event
endEventID
: number of days since first event (grouped by patient id) to the end date of event
the event
dataframe with additional columns: and added columns:
eventID
endEventID
1 2 3 4 5 6 7 | data("fake_data")
events <- fake_data$events
events$startdate <- as.Date(as.character(events$startdate), format='%Y-%m-%d')
events$enddate <- as.Date(as.character(events$enddate), format='%Y-%m-%d')
cleaned <- removeData(events)
cleaned <- resetEventIDsToDays(cleaned)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.