| emr_time | R Documentation |
Convert time periods to internal time format
emr_time(days = 0, months = 0, years = 0, hours = 0)
hours(n)
hour()
days(n)
day()
weeks(n)
week()
day()
months(n)
month()
years(n)
year()
days |
number of days |
months |
number of months |
years |
number of years |
hours |
number of hours |
n |
number of days/weeks/months/years/hours |
emr_time converts a generic number of years, months day and hours to the internal
naryn machine format (which is hours).
year, years, month, months, week, weeks,
day, days, hour, hours
are other convenience functions to get a time period explicitly.
Machine time format (number of hours)
emr_time(5) # 5 days
emr_time(months = 4) # 4 months
emr_time(2, 4, 1) # 1 year, 4 months and 2 days
year() # 1 year
years(5) # 5 years
month() # 1 month
months(5) # 5 months
day() # 1 day
days(9) # 9 days
week() # 1 week
weeks(2) # 2 weeks
hour() # 1 hour
hours(5) # 5 hours
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.