R/not.data.R

Defines functions not.data

Documented in not.data

#' Not a data
#'
#' Opposite of is.data.frame(). Check if entry is not a data object
#'
#' @param x vector entry
#' @return a boolean value to indicate if entry is a data table
#' @examples
#' test.dt <- data.frame(ID=1:200,Type="RPKG.net")
#' test.notenv <- list(t=1)
#'
#' is.data.frame(test.dt) # TRUE
#' not.data(test.dt) # FALSE
#'
#' not.data(test.notenv) # TRUE
#' if(not.data(test.dt)) message("yes") # NULL
#'
#' @export

not.data <- function(x)!{
  is.data.frame(x)
}

Try the quickcode package in your browser

Any scripts or data that you put into this service are public.

quickcode documentation built on April 11, 2025, 5:49 p.m.