Learn R Programming

rangr (version 1.0.6)

print.sim_results: Print sim_results Object

Description

Print sim_results Object

Usage

# S3 method for sim_results
print(x, ...)

Value

sim_results object is invisibly returned (the x param)

Arguments

x

sim_results object; returned by the sim function

...

further arguments passed to or from other methods; none specified

Examples

Run this code
library(terra)

n1_small <- rast(system.file("input_maps/n1_small.tif", package = "rangr"))
K_small <- rast(system.file("input_maps/K_small.tif", package = "rangr"))

sim_data <- initialise(
  n1_map = n1_small,
  K_map = K_small,
  r = log(2),
  rate = 1 / 1e3
)
sim_res <- sim(obj = sim_data, time = 20, burn = 5)
print(sim_res)


Run the code above in your browser using DataLab