Learn R Programming

sdbuildR (version 2.0.0)

head.verify_stockflow: Print first rows of verify results

Description

Wrapper around head() that first converts the results to a data frame using as.data.frame.verify_stockflow().

Usage

# S3 method for verify_stockflow
head(x, n = 6L, ...)

Value

A data.frame.

Arguments

x

A verify_stockflow object.

n

Number of rows. Defaults to 6.

...

Other arguments passed to as.data.frame.verify_stockflow().

Examples

Run this code
sfm <- stockflow("SIR") |>
  unit_test(expr = all(susceptible >= 0))
res <- verify(sfm)
head(res)

Run the code above in your browser using DataLab