Description Usage Arguments Details
Checks and object length to make sure it is equal to 1 or max number of input layers
1 | check_length(x, lx, name = "")
|
x |
object to check |
lx |
length it should be |
name |
Optional name to add in for output message |
Internal function that checks whether object is either of length 1 or equal to some longer length, such as the number of layers in a RasterBrick. If it is not equal to those numbers, it causes a failure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.