Combine a list of risk layers using a weighted linear approach: $$w_1 x_1 + w_2 x_2 + \cdots$$

wlc(x, w, na.rm = TRUE)

Arguments

x list of risk factors (RaterLayer objects) vector of weights logical.

Value

A RasterLayer object.

Details

Missing values are by default removed from the combination, yielding a result that relies on the available factors in each place. If na.rm = FALSE, then all pixels where at least one risk factor is missing get a missing value as the result.