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 21, 2017, 4:05 a.m.
Search within the lcmix package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.