Learn R Programming

quickcode (version 1.0.6)

not.data: Not a data

Description

Opposite of is.data.frame(). Check if entry is not a data object

Usage

not.data(x)

Value

a boolean value to indicate if entry is a data table

Arguments

x

vector entry

Examples

Run this code
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

Run the code above in your browser using DataLab