Description Usage Arguments Value Functions
View source: R/AdditionalFunctions-DateTime.R
These a group of functions that support other functions within the model
1 2 3 4 5 6 7 8 9 | TimeExt(sec = F)
OrdinalDate(date)
DateDuration(startDate, endDate)
SetWinterDates(winterStartDate, winterEndDate)
SetExposureDates(growth_percents)
|
sec |
TRUE/FALSE to include seconds in time output |
date |
Date in format 'DateMonthYear', ex. '01Jan20' |
startDate |
Beginning ordinal date |
endDate |
Ending ordinal date |
winterStartDate |
Starting date for the duration [Ordinal date integer] |
winterEndDate |
Ending date for the duration [Ordindal date interger] |
growth_percents |
The daily Kappa growth percent decreases from baseline return A vector of length length(growth_percents) with TRUE for each day where growth percent differs from 1 |
A vector of length 365 where dates within 'startDate' and 'endDate' are TRUE all others are FALSE
TimeExt
: Modified system time function formatted for use in naming files
OrdinalDate
: Ordinal day function turns a date string into an integer
DateDuration
: Ordinal day duration function, takes to ordinal dates and provides all ordinal dates in between them as a vector
SetWinterDates
: This function is used to create a vector of TRUE/FALSE values where each day in the range specified is TRUE and those not within the duration are FALSE - used for winter dates here
SetExposureDates
: This function takes a vector of growth percents from exposure and creates a boolean for each day that a growth percent exists. Returns vector same length as input vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.