Learn R Programming

mitml (version 0.4-5)

is.mitml.list: Check if an object is of class mitml.list

Description

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

Usage

is.mitml.list(x)

Value

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

Arguments

x

An R object.

Author

Simon Grund

See Also

as.mitml.list

Examples

Run this code
l <- list(data.frame(x = rnorm(20)))
l <- as.mitml.list(l)
is.mitml.list(l)
# TRUE

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

class(l) <- "mitml.list"
is.mitml.list(l)
# TRUE, with a warning

Run the code above in your browser using DataLab