Skip to content

Commit

Permalink
FT: #59 remove get_mms_rnm_cols_suff
Browse files Browse the repository at this point in the history
  • Loading branch information
ricfog committed Mar 29, 2021
1 parent 385e9ad commit 209ddba
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions R/ols-summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,36 +149,6 @@ check_fn_args_summary <- function(mod_fit,
return(comm_nms)
}

# FUNCTIONS: variance summary columns suffix renaming helper function ----

#' Adds a variance type abbreviation suffix to variance summary tibbles
#'
#' @param var_summary TODO: Add later
#' @param var_type_abb TODO: Add later
#'
#' @return (\code{tibble}) : TODO Add later
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
#' # TODO: Add here
#' }
get_mms_rnm_cols_suff <- function(var_summary, var_type_abb) {

# Append suffix to variable names
cols_common <- c("term", "estimate")
cols_with_suffix <- setdiff(colnames(var_summary), cols_common) %>%
stringr::str_c(., var_type_abb, sep = ".")
cols_renamed <- c(cols_common, cols_with_suffix)

# Apply new names
var_summary <- dplyr::rename_with(.data = var_summary,
.fn = ~ cols_renamed,
.cols = dplyr::everything())

return(var_summary)
}

# FUNCTIONS: emoji and title builder helper function ----

Expand Down

0 comments on commit 209ddba

Please sign in to comment.