check-scalar-isOfDimension | R Documentation |
Does the input contain specific dimensions?
isOfDimension(x, n)
x |
Object. |
n |
|
TRUE
on success;
FALSE
on failure, with cause set.
Updated 2021-10-08.
assertive.properties::is_of_dimension()
.
x <- data.frame(a = c(TRUE, FALSE), b = c(FALSE, TRUE))
dim(x)
## TRUE ====
isOfDimension(x, n = c(2L, 2L))
## FALSE ====
isOfDimension(x, n = c(1L, 2L))
isOfDimension(x, n = c(2L, 1L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.