Description Arguments Examples
is_dataframe
tests if an object is a data frame
is_numeric_dataframe
tests if an object is a
numeric data frame
is_string_dataframe
tests
if an object is a string data frame
is_factor_dataframe
tests if an object is a factor
data frame
is_not_dataframe
tests if an object
is not a data frame
x |
an R object |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | is_dataframe(iris) # TRUE
is_dataframe(1:10) # FALSE
is_numeric_dataframe(iris) # FALSE
is_numeric_dataframe(iris[,1:4]) # TRUE
DF = matrix(letters[1:24], 6, 4)
DF1 = data.frame(DF)
DF2 = data.frame(DF, stringsAsFactors=FALSE)
is_string_dataframe(DF1) # FALSE
is_string_dataframe(DF2) # TRUE
is_factor_dataframe(DF1) # TRUE
is_factor_dataframe(DF2) # FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.