Learn R Programming

sdbuildR (version 2.0.0)

tail.verify_stockflow: Print last rows of verify results

Description

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

Usage

# S3 method for verify_stockflow
tail(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)
tail(res)

Run the code above in your browser using DataLab