This function returns TRUE for tidytables or subclasses of tidytables, and FALSE for all other objects.
is_tidytable(x)
An object
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