This function returns TRUE for tidytables or subclasses of tidytables, and FALSE for all other objects.

is_tidytable(x)

Arguments

x

An object

Examples

df <- data.frame(x = 1:3, y = 1:3)

is_tidytable(df)
#> [1] FALSE

df <- tidytable(x = 1:3, y = 1:3)

is_tidytable(df)
#> [1] TRUE