check_dims | R Documentation |
Check vector/matrix/data.frame for expected dimensions or throw error
check_dims(x, d, par)
x |
object to check |
d |
expected dimensions |
par |
character name of x (for error message) |
nothing if no error, otherwise throws error
y <- c(1,3,4)
check_dims(y, 3, "y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.