read_landscape: Read landscape data from PNG output.

View source: R/fun_read_land.R

read_landscapeR Documentation

Read landscape data from PNG output.

Description

Read landscape data from PNG output.

Usage

read_landscape(
  landscape_file,
  layer,
  crop_dim,
  type = c("items", "gradient"),
  max_K = 5
)

Arguments

landscape_file

Path to the landscape file.

layer

Which layer to read.

crop_dim

How many rows and columns to return.

type

What to return, either "items" for the item counts, or "gradient" for the gradient in item counts.

max_K

Carrying capacity of a cell.

Value

A data.table of X, Y and value


pratikunterwegs/klepto-move-evol documentation built on March 20, 2023, 3:35 p.m.