Description Usage Arguments Value Author(s) Examples
is x a matrix
or data.frame
?
1 2 | ## S3 method for class 'like'
is.matrix(x)
|
x |
an R object |
logical: TRUE
if x
is a matrix
or data.frame
;
FALSE
otherwise
Mark Cowley, 2011-07-18
1 2 3 4 5 6 | m <- matrix(1:25,5)
is.matrix.like(m)
df <- as.data.frame(m)
is.matrix.like(df)
is.matrix.like(letters)
# FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.