Description Usage Arguments Details
Checks and sets object length to correct length
1 | set_length(x, lx = y, 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 between those numbers, it sets the object equal to the first element.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.