This function calculates the consequences for each site within a solution. Specifically, it shows how each site contributes to the overall amount of each feature given the solution.

solution_site_consequence(feature_ids, action_ids, pu_data, solution_data)

Arguments

feature_ids

character vector of identifiers for each feature.

action_ids

character vector of identifiers for each action.

pu_data

data.frame containing planning unit data.

solution_data

data.frame object containing the solution.

Value

A matrix object containing the expected amount of each feature within each site. Each row is a different planning unit, each column is a different feature.