check_assertions: check_assertions

Description Usage Arguments Value

View source: R/make_priogrid.R

Description

Applies a custom battery of assertions to the provided raster layer, specified as a list of expressions in the config file. Each expression must evaluate to either true or false. The result is returned as a series of messages.

Usage

1
check_assertions(rast, assertions)

Arguments

rast

A raster layer.

assertions

A character vector of valid R expressions.

Value

The function returns a character vector of messages with the results of the assertions.


prio-data/priogrid documentation built on June 28, 2021, 5:34 a.m.