misc/list_class.R

#' Show class of all cols in a data.frame
#'
#' @param data A data.frame
#' 
#' @return A data.frame with variable names and classes

list_class <- function(data) {
  data.frame(class = unlist(lapply(data, class)))
}
jazznbass/wmisc documentation built on Oct. 29, 2024, 5:42 p.m.