Description Usage Arguments Details Author(s) See Also Examples
This function uses a dataFrame and extracts the date from the field
assigned_at
or created_at
. It appends a vector of character
values with the date and the day of the week associated with those values.
1 | AssignDateAndDay(dF, value = "assigned")
|
dF |
The dF that needs an |
value |
The field that will be used the determine which day of the week the call came into the call center. Additional values include default value will use the in the |
The dF
passed to this function must have either the values
assigned_at
or created_at
as a vector of character date values.
The assumed format for the date values is from the strptime
function where format = "%Y-%m-%d %H:%M:%S"
.
This function uses weekdays
to convert dates to the
day of the week.
Steven H. Ranney
Contact: Steven.Ranney@gmail.com
Steven Ranney
1 2 3 4 5 6 7 8 9 10 | assigned_at <- c("2014-01-01 11:37:00 -0800", "2014-01-02 09:24:05 -0800",
"2014-01-02 10:04:41 -0800")
dF<-as.data.frame(assigned_at)
newDf <- AssignDateAndDay(dF)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.