R/nameCol.r

Defines functions nameCol

Documented in nameCol

#' Vertically displayed column name function, a MJP team defined function
#' 
#' @param data     Input dataset to extract column.
#' 
#' @return     A matrix displaying the columnor variable names vertically
#' 
#' @examples
#'     nameCol(mtcars)
#' @export
nameCol <- function(data=mtcars){
    nameCol <- matrix(colnames(data),ncol=1)
    return(nameCol)
}
richielin/mjp documentation built on May 5, 2019, 12:32 p.m.