prepare_data: Preparing input data from catchment model

View source: R/prepare-data.R

prepare_dataR Documentation

Preparing input data from catchment model

Description

Preparing input data from catchment model

Usage

prepare_data(
  prob_mat_init,
  pop_raster,
  location_data,
  id_col = "label",
  weight_col = "weight",
  x_col = "x",
  y_col = "y",
  mesh.args = NULL
)

Arguments

prob_mat_init

A matrix object.

pop_raster

A raster object/

location_data

A dataframe object which contains point-level data, including coordinates, labels, and weights.

id_col

A character for the column in location_data that contains the labels for individual point. This should be a unique identifier (no duplicated values).

weight_col

A character for the column in location_data that contains the weights for each point.

x_col

A character for the X column

y_col

A character for the Y column

...

Value

a list.


PATH-Global-Health/catchment documentation built on Feb. 16, 2025, 12:39 a.m.