#' @export
#'
rescale_df <- function(df, to = c(0.01, 1), verbose = TRUE, with.time = TRUE){
give_feedback(msg = "Rescaling.", verbose = verbose, with.time = with.time)
df <-
dplyr::mutate(
.data = df,
dplyr::across(
.cols = where(base::is.numeric),
.fns = ~ scales::rescale(x = .x, to = to)
)
)
give_feedback(msg = "Done.", verbose = verbose, with.time = with.time)
return(df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.