Description Usage Arguments Value Examples
Stops code if dimension of x
is not as specified by y
.
1 | stop_length_message(x, y)
|
x |
vector that should be length |
y |
numeric scalar indicating required length of x, or vector of scalars indicating required dimensions of x. |
Error message if x
does not have dimensions specified by y
,
otherwise, nothing is returned.
1 2 3 4 5 6 7 8 9 10 | ## Returns error (not run)
#x <- c(1,2,3)
#y <- 4
#stop_length_message(x,y)
##Returns error (not run)
#x <- matrix(1:4,2,2)
#y <- c(1,2)
#stop_length_message(x,y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.