View source: R/combine_signals.R
| combine_signals | R Documentation |
Takes in an Hourly Collaboration Data, and for each hour sums and aggregates
the signals (e.g.Emails_sent and IMs_sent) in Signals_sent. This is an
internal function used in the Working Patterns functions.
combine_signals(data, hr, signals = c("Emails_sent", "IMs_sent"))
data |
Hourly Collaboration query containing signal variables (e.g.
|
hr |
Numeric value between 0 to 23 to iterate through |
signals |
Character vector for specifying which signal types to combine.
Defaults to |
combine_signals uses string matching to aggregate columns.
Returns a numeric vector that represents the sum of signals sent for a given hour.
Other Support:
camel_clean(),
check_inputs(),
cut_hour(),
extract_date_range(),
extract_hr(),
heat_colours(),
is_date_format(),
maxmin(),
p_test(),
pairwise_count(),
plot_WOE(),
read_preamble(),
rgb2hex(),
totals_bind(),
totals_col(),
totals_reorder(),
tstamp(),
us_to_space(),
wrap()
# Demo using simulated variables
sim_data <-
data.frame(Emails_sent_09_10 = sample(1:5, size = 10, replace = TRUE),
Unscheduled_calls_09_10 = sample(1:5, size = 10, replace = TRUE))
combine_signals(sim_data, hr = 9, signals = c("Emails_sent", "Unscheduled_calls"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.