isMDF: Test For Matrix Or Data Frame

Description Usage Arguments Value Author(s) Examples

Description

See Value.

Usage

1
isMDF(x)

Arguments

x

an object.

Value

TRUE if x is a matrix or a data frame, otherwise FALSE.

Author(s)

Daniel Dvorkin

Examples

1
2
3
4
5
6
7
x = 1:3
y = cbind(1:3, 2:4)
z = as.data.frame(y)
isMDF(x) # FALSE
isMDF(y) # TRUE
isMDF(z) # TRUE
isMDF(z$V1) # FALSE

lcmix documentation built on May 2, 2019, 6:49 p.m.