R/nms.R

Defines functions nms

Documented in nms

#' Easily see variable index locations
#'
#' Function returns the variable names and their location in a data frame (the
#' row names index their locations)
#'
#' @param d Data frame from which to report variable names and their locations
#'
#' @return data frame of the names from the dataset and their location as the
#' row names
#' @export

nms <- function(d) as.data.frame(names(d))
DJAnderson07/sundry documentation built on April 13, 2021, 3:46 p.m.