Various useful functions for working with data and writing functions
Rescale to standard (0-1) scale
Rescale to normal (mean = 0; sd = 1) scale
Rescale to arbitrary lower/upper bounds
Use box_code()
to add a header-like chunk to your clipboard–paste in script as desired.
## store text in clipboard
box_code("EXAMPLE #1")
#> ##----------------------------------------------------------------------------##
#> ## EXAMPLE #1 ##
#> ##----------------------------------------------------------------------------##
## the pasted output:
##----------------------------------------------------------------------------##
## EXAMPLE #1 ##
##----------------------------------------------------------------------------##