#' ruf
#' @name append_colname_prefix
#' @export
#' @import tidyverse
#' @examples
#' append_colname_prefix(data, group_var, var_prefix)
append_colname_prefix <- function(data, group_var, var_prefix) {
len_group_var = length(group_var)
names(data)[(len_group_var + 1):ncol(data)] <- paste0(var_prefix, ".", names(data)[(len_group_var + 1):ncol(data)])
return(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.