| maxmin {vivainsights} | R Documentation |
Max-Min Scaling Function
Description
This function allows you to scale vectors or an entire data frame using the max-min scaling method A numeric vector is always returned.
Usage
maxmin(x)
Arguments
x |
Pass a vector or the required columns of a data frame through this argument. |
Details
This is used within keymetrics_scan() to enable row-wise
heatmapping. Originally implemented in
https://github.com/martinctc/surveytoolbox.
Value
Returns a numeric vector with the input rescaled.
See Also
Other Support:
any_idate(),
camel_clean(),
check_inputs(),
cut_hour(),
extract_date_range(),
extract_hr(),
heat_colours(),
is_date_format(),
pairwise_count(),
read_preamble(),
rgb2hex(),
totals_bind(),
totals_col(),
tstamp(),
us_to_space(),
wrap()
Examples
numbers <- c(15, 40, 10, 2)
maxmin(numbers)
[Package vivainsights version 0.5.3 Index]