isMDF: Test For Matrix Or Data Frame

Description Usage Arguments Value Author(s) Examples

View source: R/visible_utilities.R

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 31, 2017, 5 a.m.

Search within the lcmix package
Search all R packages, documentation and source code