R/get_names.R

Defines functions get_factor_names get_character_names get_numeric_names

#' @export
get_numeric_names <- function(lst){

  purrr::keep(.x = lst, .p = base::is.numeric) %>%
    base::names()

}

#' @export
get_character_names <- function(lst){

  purrr::keep(.x = lst, .p = base::is.character) %>%
    base::names()

}

#' @export
get_factor_names <- function(lst){

  purrr::keep(.x = lst, .p = base::is.factor) %>%
    base::naems()

}
kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.