totals_col {wpa} | R Documentation |
Fabricate a 'Total' HR variable
Description
Create a 'Total' column of character type comprising exactly of
one unique value. This is a convenience function for returning a no-HR
attribute view when NULL
is supplied to the hrvar
argument in
functions.
Usage
totals_col(data, total_value = "Total")
Arguments
data |
data frame |
total_value |
Character value defining the name and the value of the
|
Value
data frame containing an additional 'Total' column on top of the input data frame.
See Also
Other Support:
camel_clean()
,
check_inputs()
,
combine_signals()
,
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_reorder()
,
tstamp()
,
us_to_space()
,
wrap()
Examples
# Create a visual without HR attribute breaks
sq_data %>%
totals_col() %>%
collab_fizz(hrvar = "Total")