R/check_df_cols.R

Defines functions check_df_cols

check_df_cols <- function(df){
  # performs some basic checks
  if(!"data.frame" %in% class(df)) stop("Your input is not a data.frame!")
  if(ncol(df) == 0) stop("Your input seems to have no columns!")
}
alastairrushworth/mlblitz documentation built on Nov. 1, 2019, 9:06 p.m.