R/b_names.R

#' Show the column names for a data.frame in alphabetical order
#'
#' This is a slight modification of \code{names}
#'
#' @param df the data.frame to inspect
#'
#' @examples
#' b_names(mtcars)
b_names<-function(df) {
  a<-names(df)
  a<-a[order(a)]
  return(a)
}
willbmisled/bm documentation built on May 16, 2019, 7:32 a.m.