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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/is.mitml.list.R

Description

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

Usage

1

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(s)

Simon Grund

See Also

as.mitml.list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

mitml documentation built on Oct. 5, 2021, 5:07 p.m.