This function checks if its argument is a list of class mitml.list.

is.mitml.list(x)

Arguments

x

An R object.

Value

TRUE or FALSE. A warning message is displayed if the contents of x do not appear to be data frames.

Author

Simon Grund

See also

Examples

l <- list(data.frame(x = rnorm(20)))
l <- as.mitml.list(l)
is.mitml.list(l)
#> [1] TRUE
# TRUE

l <- as.list(1:10)
is.mitml.list(l)
#> [1] FALSE
# FALSE

class(l) <- "mitml.list"
is.mitml.list(l)
#> Warning: Does not appear to be a list of data frames.
#> [1] TRUE
# TRUE, with a warning