check_length: Checks and object length to make sure it is equal to 1 or max...

Description Usage Arguments Details

Description

Checks and object length to make sure it is equal to 1 or max number of input layers

Usage

1
check_length(x, lx, name = "")

Arguments

x

object to check

lx

length it should be

name

Optional name to add in for output message

Details

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.


PrincetonUniversity/agroEcoTradeoff documentation built on May 8, 2019, 3:12 p.m.