Skip to contents

Internal helper. Asserts that x carries the forest_stats class, contains the canonical stats columns, and carries the config keys downstream consumers (notably plot_build_forest()) depend on. Aborts with a clear message on failure; returns x invisibly on success.

Usage

validate_forest_stats(x)

Arguments

x

Object to validate.

Value

invisible(x) on success.