combine_signals {wpa} | R Documentation |
Combine signals from the Hourly Collaboration query
Description
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.
Usage
combine_signals(data, hr, signals = c("Emails_sent", "IMs_sent"))
Arguments
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 |
Details
combine_signals
uses string matching to aggregate columns.
Value
Returns a numeric vector that represents the sum of signals sent for a given hour.
See Also
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()
Examples
# 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"))