R/utils.R

Defines functions adj_col_nms

adj_col_nms <- function(x){
  x %>%
    # remove non ASCII characters, like degree symbol
    iconv(to = "ASCII", sub = "") %>%
    make.names(.) %>%
    tolower() %>%
    gsub("\\.+$", "", .) %>%
    gsub("\\.+", "_", .)
}
Huh/CollaR documentation built on Aug. 8, 2022, 9:02 p.m.