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.
Arguments
- data
data frame
- total_value
Character value defining the name and the value of the
"Total"
column. Defaults to"Total"
. An error is returned if an existing variable has the same name as the supplied value.
See also
Other Support:
any_idate()
,
camel_clean()
,
check_inputs()
,
cut_hour()
,
extract_date_range()
,
extract_hr()
,
heat_colours()
,
is_date_format()
,
maxmin()
,
pairwise_count()
,
read_preamble()
,
rgb2hex()
,
totals_bind()
,
tstamp()
,
us_to_space()
,
wrap()
Examples
# Create a visual without HR attribute breaks
pq_data %>%
totals_col() %>%
create_fizz(hrvar = "Total", metric = "Email_hours")