is_tabular: Is tabular

Description Arguments Examples

Description

is_tabular tests if an object has a tabular format (i.e. a matrix or data frame)
is_not_tabular tests if an object doesn't have a tabular format (i.e. not matrix nor data frame)
is_numeric_tabular tests if an object is a numeric table (i.e. a numeric matrix or data frame)
is_string_tabular tests if an object is a string table

Arguments

x

an R object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
A = matrix(1:10, 5, 2)
B = matrix(letters[1:10], 5, 2)
C = 1:10

is_tabular(A) # TRUE
is_tabular(iris) # TRUE

is_numeric_tabular(A) # TRUE
is_numeric_tabular(iris) # FALSE
is_numeric_dataframe(iris[,1:4]) # TRUE

gastonstat/tester documentation built on May 16, 2019, 6:38 p.m.