R/to_any_case_wrap.R

Defines functions to_any_case_wrap

Documented in to_any_case_wrap

#' Wrap to_any_case function
#'
#' Wrapper for \code{\link[snakecase]{to_any_case}} function that returns NULL
#' if input string is NULL
#'
#' @param df A dataframe
#'
#' @importFrom snakecase to_any_case
#'
to_any_case_wrap <- function(string, case) {
  if (is.null(string)) {
    return(NULL)
  } else {
    return(to_any_case(string, case))
  }
}
natbprice/huntfishapp documentation built on Sept. 2, 2020, 11:01 p.m.