difftime_sim | R Documentation |
Calculate the time difference between two times formatted as in simulator output
difftime_sim(time1, time2, units = "hours")
time1 |
the earlier time in the simulator output, e.g., "Day 1, 09:00" |
time2 |
the later time in the simulator output, e.g., "Day 2, 09:00" |
units |
units for the time. Options are "hours" (default), "minutes", or "days". |
Returns a number
difftime_sim(time1 = "Day 1, 09:00", time2 = "Day 14, 21:00")
difftime_sim(time1 = "Day 1, 09:00", time2 = "Day 1, 21:00",
units = "minutes")
difftime_sim(time1 = "Day 1, 09:00", time2 = "Day 42, 21:00",
units = "days")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.