R/get.names.R

#' A letter counting function
#'
#' This function counts letters 
#' @param which string would you like to count the letters of
#' @keywords string count
#' @export
#' @examples
#' get_names()

get_names <- function(x) { 
        # outputs column names of x in a way that is easy to paste into code for selections
        cat(paste( c( "c( \n", paste0("\"", names(x), "\", \n") , ")") , collapse = ""))
                     
        }
louischaman/Rstartup documentation built on May 10, 2019, 12:10 a.m.