R/cat_names.R

Defines functions cat_names

Documented in cat_names

#' A function to print variable names for easy pasting to a new character vector.
#'
#' @param x a data.frame
#' @export
#'
#' @examples cat_names(iris)

cat_names <- function(x){
  cat(paste(",'", names(x), "'", "\n", sep = ""))
}
barrenWuffet/convPkg documentation built on Jan. 25, 2024, 9:59 p.m.